LCD 1602 Driver with ESP32 I2C 1.1
This is a complete driver for LCD 1602 using I2C with the ESP32
|
Macros | |
#define | LCD_1602_CONFIG_INPUT_SET(dir, mov) |
Macro for setting the correct movement of the cursor. Use together with: | |
#define | LCD_1602_CONFIG_DISPLAY_SWITCH(disp, curs, blink) |
Macro for configuring the display settings. Use together with;. | |
#define | LCD_1602_SHIFT(ele, dir) |
Macro for moving the cursor or the display. User together with: | |
#define | LCD_1602_FUNCTION_SET(dl, r, f) |
Macro for configuring the lcd screens function. Use together with: |
#define LCD_1602_CONFIG_DISPLAY_SWITCH | ( | disp, | |
curs, | |||
blink ) |
Macro for configuring the display settings. Use together with;.
disp | if the display should be turned on or off. LCD_1602_DISPLAY_ON | LCD_1602_DISPLAY_OFF |
curs | if the cursor should be turned on or off. LCD_1602_CURSOR_ON | LCD_1602_CURSOR_OFF |
blink | if the screen should blink or not. LCD_1602_BLINK_DISPLAY | LCD_1602_N_BLINK_DISPLAY |
Definition at line 104 of file lcd_1602_internal.h.
#define LCD_1602_CONFIG_INPUT_SET | ( | dir, | |
mov ) |
Macro for setting the correct movement of the cursor. Use together with:
dir | the direction to move the cursor. LCD_1602_INCREMENT_MODE for forward | LCD_1602_DECREMENT_MODE for backwards |
mov | if the cursor should move when bytes are written. LCD_1602_CURSOR_MOVE_ON_WRITE or LCD_1602_CURSOR_N_MOVE |
Definition at line 87 of file lcd_1602_internal.h.
#define LCD_1602_FUNCTION_SET | ( | dl, | |
r, | |||
f ) |
Macro for configuring the lcd screens function. Use together with:
dl | signifies the data-length of read/write. LCD_1602_DATA_LEN_8_BIT | LCD_1602_DATA_LEN_4_BIT |
r | sets the amount of rows used. LCD_1602_2_ROWS | LCD_1602_1_ROW |
f | sets the font to be used. LCD_1602_FONT_5X10 | LCD_1602_FONT_5X7 |
Definition at line 135 of file lcd_1602_internal.h.
#define LCD_1602_SHIFT | ( | ele, | |
dir ) |
Macro for moving the cursor or the display. User together with:
ele | the element to be moved. LCD_1602_CURSOR_MOVE for cursor | LCD_1602_DISPLAY_SHIFT for whole display |
dir | the direction to move. LCD_1602_SHIFT_LEFT | LCD_1602_SHIFT_RIGHT |
Definition at line 118 of file lcd_1602_internal.h.