jlx12864.h 560 B

12345678910111213141516171819202122
  1. #ifndef JLX12864_H
  2. #define JLX12864_H
  3. #define pgm_read_byte(b) (*(unsigned char *)(b))
  4. /* LCD type: 0 - uc1701, 1 - ssd1306 */
  5. uint8_t lcd_type;
  6. void delay(int i);
  7. void transfer_command(int data);
  8. void transfer_data(int data);
  9. void init_lcd(void);
  10. void lcd_bcklight_on(void);
  11. void lcd_bcklight_off(void);
  12. void lcd_address(uint8_t page, uint8_t column);
  13. void clear_screen(void);
  14. void full_display(uint8_t data1, uint8_t data2);
  15. void test_box(void);
  16. void display_string_5x8(uint8_t page, uint8_t column, uint8_t reverse, char *text);
  17. void test(void);
  18. #endif