I2CLCD
HD4470 LCD driver via I2C interface
|
Macros | |
#define | LCD_D4 (1 << LCD_D4_PIN) |
#define | LCD_D5 (1 << LCD_D5_PIN) |
#define | LCD_D6 (1 << LCD_D6_PIN) |
#define | LCD_D7 (1 << LCD_D7_PIN) |
#define | LCD_RS (1 << LCD_RS_PIN) |
#define | LCD_RW (1 << LCD_RW_PIN) |
#define | LCD_LIGHT (1 << LCD_LIGHT_PIN) |
#define | LCD_E (1 << LCD_E_PIN) |
With each read/write operation to/from the display one bytes is send/received.
It contains the control bits RS, RW, LIGHT_N and ENABLE and four data bits.
#define LCD_D4 (1 << LCD_D4_PIN) |
bit 4 in 2nd lower nibble
#define LCD_D5 (1 << LCD_D5_PIN) |
bit 5 in 2nd lower nibble
#define LCD_D6 (1 << LCD_D6_PIN) |
bit 6 in 2nd lower nibble
#define LCD_D7 (1 << LCD_D7_PIN) |
bit 7 in 2nd lower nibble
#define LCD_E (1 << LCD_E_PIN) |
E-bit in 1st and 2nd higher nibble
#define LCD_LIGHT (1 << LCD_LIGHT_PIN) |
LCD backlight control
#define LCD_RS (1 << LCD_RS_PIN) |
RS-bit in 1st and 2nd higher nibble
#define LCD_RW (1 << LCD_RW_PIN) |
RW-bit in 1st and 2nd higher nibble