flipbip.h 1.4 KB

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