flipbip.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #pragma once
  2. #include <furi.h>
  3. #include <furi_hal.h>
  4. #include <gui/gui.h>
  5. #include <input/input.h>
  6. #include <stdlib.h>
  7. #include <notification/notification_messages.h>
  8. #include <gui/view_dispatcher.h>
  9. #include <gui/modules/submenu.h>
  10. #include <gui/scene_manager.h>
  11. #include <gui/modules/variable_item_list.h>
  12. #include "scenes/flipbip_scene.h"
  13. #include "views/flipbip_startscreen.h"
  14. #include "views/flipbip_scene_1.h"
  15. #define FLIPBIP_VERSION "v0.0.4"
  16. typedef struct {
  17. Gui* gui;
  18. NotificationApp* notification;
  19. ViewDispatcher* view_dispatcher;
  20. Submenu* submenu;
  21. SceneManager* scene_manager;
  22. VariableItemList* variable_item_list;
  23. FlipBipStartscreen* flipbip_startscreen;
  24. FlipBipScene1* flipbip_scene_1;
  25. int haptic;
  26. int led;
  27. int bip39_strength;
  28. int bip44_coin;
  29. int overwrite_saved_seed;
  30. } FlipBip;
  31. typedef enum {
  32. FlipBipViewIdStartscreen,
  33. FlipBipViewIdMenu,
  34. FlipBipViewIdScene1,
  35. // FlipBipViewIdScene2,
  36. FlipBipViewIdSettings,
  37. } FlipBipViewId;
  38. typedef enum {
  39. FlipBipHapticOff,
  40. FlipBipHapticOn,
  41. } FlipBipHapticState;
  42. typedef enum {
  43. FlipBipLedOff,
  44. FlipBipLedOn,
  45. } FlipBipLedState;
  46. typedef enum {
  47. FlipBipStrength128,
  48. FlipBipStrength192,
  49. FlipBipStrength256,
  50. } FlipBipStrengthState;
  51. typedef enum {
  52. FlipBipCoinBTC0,
  53. FlipBipCoinETH60,
  54. } FlipBipCoinState;