#ifndef __LCD_H__ | |
#define __LCD_H__ | |
enum { | |
PANEL_ST7735 = 1, | |
PANEL_GC9102, | |
PANEL_GC9106, | |
}; | |
enum { | |
CMD_TYPE_START, | |
CMD_TYPE_END, | |
CMD_TYPE_CMD, | |
CMD_TYPE_DATA, | |
CMD_TYPE_DELAY, | |
}; | |
struct lcd_cmd { | |
unsigned char type; | |
unsigned short data; | |
}; | |
unsigned char lcd_gettype(void); | |
void LCD_SEND_DATA(void); | |
void LCD_SEND_CMD(void); | |
void lcd_power(int on); | |
int spi_lcd_init(void); | |
extern void lcd_readid_pin_config(void); | |
extern void lcd_readid_pin_restore(void); | |
#endif |