scene_about.c 809 B

123456789101112131415161718192021222324252627282930
  1. #include "scene_about.h"
  2. #include "app_state.h"
  3. #include "scenes.h"
  4. #include "flipper.h"
  5. void lwc_about_scene_on_enter(void* context) {
  6. App* app = context;
  7. text_box_set_text(
  8. app->about,
  9. "Listen to longwave senders transmitting atomic precision time signals, "
  10. "either using GPIO and special modules or using demo mode to simulate reception.\n\n"
  11. "Made by Andrea Micheloni\n@m7i-org | m7i.org\n\n"
  12. "...because it's always time for learning.");
  13. view_dispatcher_switch_to_view(app->view_dispatcher, LWCAboutView);
  14. }
  15. bool lwc_about_scene_on_event(void* context, SceneManagerEvent event) {
  16. UNUSED(context);
  17. UNUSED(event);
  18. return false;
  19. }
  20. void lwc_about_scene_on_exit(void* context) {
  21. App* app = context;
  22. text_box_reset(app->about);
  23. }