display.h 891 B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. #ifndef _DISPLAY_H_
  3. #define _DISPLAY_H_
  4. /* Includes */
  5. #include "main.h"
  6. /* Exported constants */
  7. #define DISPLAY_COLUMNS 24
  8. #define DISPLAY_REFRESH_MS 30
  9. /* Variables */
  10. extern uint8_t display_Buffer[];
  11. /* Exported function prototypes */
  12. void display_Init(void);
  13. void display_WriteData(const uint8_t * data, uint8_t addr, uint8_t len);
  14. void display_WriteBuffer(void);
  15. void display_WriteBuf(const uint8_t * buf);
  16. void display_PWM(uint8_t pwm);
  17. void display_BlinkState(dis_en_t state);
  18. void display_LedState(dis_en_t state);
  19. void display_Fill(uint8_t pattern);
  20. void display_Char(const uint8_t symb, uint8_t column);
  21. void display_Text(const char * text, uint8_t column);
  22. void display_String(const char * string, uint8_t repeat);
  23. void display_Digits(uint8_t left, uint8_t right);
  24. void display_Wait4Display(void);
  25. void TIM16_IRQHandler(void);
  26. #endif /* _DISPLAY_H_ */