flipbip.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. typedef struct {
  16. Gui* gui;
  17. NotificationApp* notification;
  18. ViewDispatcher* view_dispatcher;
  19. Submenu* submenu;
  20. SceneManager* scene_manager;
  21. VariableItemList* variable_item_list;
  22. FlipBipStartscreen* flipbip_startscreen;
  23. FlipBipScene1* flipbip_scene_1;
  24. int haptic;
  25. int led;
  26. int bip39_strength;
  27. int bip44_coin;
  28. int overwrite_saved_seed;
  29. } FlipBip;
  30. typedef enum {
  31. FlipBipViewIdStartscreen,
  32. FlipBipViewIdMenu,
  33. FlipBipViewIdScene1,
  34. // FlipBipViewIdScene2,
  35. FlipBipViewIdSettings,
  36. } FlipBipViewId;
  37. typedef enum {
  38. FlipBipHapticOff,
  39. FlipBipHapticOn,
  40. } FlipBipHapticState;
  41. typedef enum {
  42. FlipBipLedOff,
  43. FlipBipLedOn,
  44. } FlipBipLedState;
  45. typedef enum {
  46. FlipBipStrength128,
  47. FlipBipStrength192,
  48. FlipBipStrength256,
  49. } FlipBipStrengthState;
  50. typedef enum {
  51. FlipBipCoinBTC0,
  52. FlipBipCoinETH60,
  53. } FlipBipCoinState;