lcd.h 483 B

12345678910111213141516171819202122232425
  1. #ifndef LCD_H_
  2. #define LCD_H_
  3. #include "common_config.h"
  4. #include <stdint.h>
  5. #define LCD_HEIGH 65
  6. #define LCD_WIDTH 132
  7. #define FONTSIZE_X 6
  8. #define FONTSIZE_Y 8
  9. typedef enum {
  10. alignLEFT,
  11. alignRIGHT,
  12. alignCENTER
  13. } align_t;
  14. void LCD_Init();
  15. void LCD_PrintRow(uint8_t row, uint8_t y, char *text);
  16. void LCD_PrintAligned(uint8_t x, align_t align, char *text);
  17. void LCD_ClearRow(uint8_t row);
  18. void LCD_PrintBar(uint8_t row, uint8_t progress);
  19. #endif /* LCD_H_ */