resistors_app.c 649 B

123456789101112131415161718192021222324
  1. #include "flipper.h"
  2. #include "resistors_app.h"
  3. #include "app_state.h"
  4. #include "scenes.h"
  5. #include "scene_main_menu.h"
  6. #include "scene_edit.h"
  7. const char* TAG = "Resistors";
  8. /** entrypoint */
  9. int32_t resistors_app(void* p) {
  10. UNUSED(p);
  11. FURI_LOG_I(TAG, "resistors app launched");
  12. App* app = app_alloc();
  13. app->state = app_state_alloc();
  14. Gui* gui = furi_record_open(RECORD_GUI);
  15. view_dispatcher_attach_to_gui(app->view_dispatcher, gui, ViewDispatcherTypeFullscreen);
  16. scene_manager_next_scene(app->scene_manager, ResistorsMainMenuScene);
  17. view_dispatcher_run(app->view_dispatcher);
  18. app_free(app);
  19. return 0;
  20. }