display.h 850 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #define DISPLAY_EVENT_STARTUP 0
  3. #define DISPLAY_EVENT_POWEROFF 1
  4. #define DISPLAY_EVENT_LOW_BATTERY 2
  5. #define DISPLAY_EVENT_INITIALIZED 3
  6. #define DISPLAY_EVENT_CARD_INITIALIZED 4
  7. #define DISPLAY_EVENT_FILE_OPEN 5
  8. #define DISPLAY_EVENT_FILE_CLOSED 6
  9. #define DISPLAY_EVENT_TRACKING_PAUSED 7
  10. #define DISPLAY_EVENT_TRACKING_RESUMED 8
  11. #define DISPLAY_EVENT_POINT_SAVED 9
  12. #define DISPLAY_EVENT_POINT_NOT_SAVED 10
  13. struct disp_s {
  14. char line1[16];
  15. char line2[17];
  16. };
  17. extern struct disp_s disp;
  18. void disp_init(void);
  19. void display_event(unsigned char event);
  20. void display_refresh(unsigned char changed);
  21. void disp_func_main_default(void);
  22. void disp_func_coord(void);
  23. void disp_func_ele_sat(void);
  24. void disp_distance_and_time(void);
  25. void disp_speed(void);
  26. void disp_time(void);
  27. void disp_func_temperature(void);
  28. void disp_pause_time(void);