display.h 664 B

12345678910111213141516171819202122232425262728
  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. struct disp_s {
  10. char line1[16];
  11. char line2[17];
  12. };
  13. extern struct disp_s disp;
  14. void disp_init(void);
  15. void display_event(unsigned char event);
  16. void display_refresh(unsigned char changed);
  17. void disp_func_main_default(void);
  18. void disp_func_coord(void);
  19. void disp_func_ele_sat(void);
  20. void disp_distance_and_time(void);
  21. void disp_speed(void);
  22. void disp_time(void);
  23. void disp_func_temperature(void);