16FXlib
|
Go to the source code of this file.
Macros | |
#define | LCD_FRAMEBUFFER_MODE 0 |
1 = Use local framebuffer in RAM and copy to LCD on call to lcd_flush(). 0 = Directly manipulate LCD ram contents. | |
#define | LCD_DATA_PORT PDR01 |
Port where the data pins of the display are connected. | |
#define | LCD_DATA_DDR DDR01 |
Direction register of the data pins port. | |
#define | LCD_DATA_PIER PIER01 |
Input enable register of the data pins port. | |
#define | LCD_CTRL_PORT PDR02 |
Port where the control lines of the display are connected. | |
#define | LCD_CTRL_DDR DDR02 |
Direction register of the control pins port. | |
#define | LCD_CTRL_PIER PIER02 |
Input enable register of the control pins port. | |
#define | LCD_CTRL_DI 0 |
Data/Instruction pin. | |
#define | LCD_CTRL_RW 1 |
Read/Write pin. | |
#define | LCD_CTRL_E 2 |
Enable pin. | |
#define | LCD_CTRL_CS1 3 |
Chip 1 select pin. | |
#define | LCD_CTRL_CS2 4 |
Chip 2 select pin. | |
#define | LCD_CTRL_RESET 5 |
Reset pint. | |
#define | LCD_WIDTH 128 |
LCD width. | |
#define | LCD_HEIGHT 64 |
LCD height. | |
LCD commands | |
Defines command values for the display. | |
#define | LCD_CMD_ON 0x3f |
Display on. | |
#define | LCD_CMD_OFF 0x3e |
Display off. | |
#define | LCD_CMD_SETADDRESS 0x40 |
Set address. | |
#define | LCD_CMD_SETPAGE 0xb8 |
Set page. | |
#define | LCD_CMD_STARTLINE 0xc0 |
Set startline. | |