LCD 1602 Driver with ESP32 I2C 1.1
This is a complete driver for LCD 1602 using I2C with the ESP32
Loading...
Searching...
No Matches
lcd_1602_internal.h File Reference

: Internal implementation of the LCD1602 More...

#include "../lcd_1602.h"
#include <stdint.h>
#include <stdlib.h>

Go to the source code of this file.

Macros

#define LCD_1602_CLEAR_SCREEN   0x01
#define LCD_1602_RESET_CURSOR_POS   0x02
#define LCD_1602_INPUT_SET_MASK   0x07
#define LCD_1602_INPUT_SET   0x04
#define LCD_1602_INCREMENT_MODE   0x02
#define LCD_1602_DECREMENT_MODE   0x00
#define LCD_1602_DISPLAY_SHIFT_ON_WRITE   0x01
#define LCD_1602_CURSOR_N_MOVE   0x00
#define LCD_1602_DISPLAY_SWITCH_MASK   0x0F
#define LCD_1602_DISPLAY_SWITCH_FLAG   0x08
#define LCD_1602_DISPLAY_ON   0x04
#define LCD_1602_DISPLAY_OFF   0x00
#define LCD_1602_CURSOR_ON   0x02
#define LCD_1602_CURSOR_OFF   0x00
#define LCD_1602_BLINK_DISPLAY   0x01
#define LCD_1602_N_BLINK_DISPLAY   0x00
#define LCD_1602_SHIFT_BITMASK   0x1C
#define LCD_1602_SHIFT_FLAG   0x10
#define LCD_1602_CURSOR_MOVE   0x00
#define LCD_1602_DISPLAY_SHIFT   0x08
#define LCD_1602_SHIFT_LEFT   0x00
#define LCD_1602_SHIFT_RIGHT   0x04
#define LCD_1602_FUNCTION_SET_MASK   0x3C
#define LCD_1602_FUNCTION_SET_FLAG   0x20
#define LCD_1602_DATA_LEN_8_BIT   0x10
#define LCD_1602_DATA_LEN_4_BIT   0x00
#define LCD_1602_2_ROWS   0x08
#define LCD_1602_1_ROW   0x00
#define LCD_1602_FONT_5X10   0x04
#define LCD_1602_FONT_5X7   0x00
#define LCD_1602_BACKLIGHT   0x08
#define LCD_1602_ENABLE   0x04
#define LCD_1602_WRITE_DATA   0x00
#define LCD_1602_RS   0x01
#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:

Detailed Description

: Internal implementation of the LCD1602

Author
: Carl Broman carl..nosp@m.brom.nosp@m.an@yh.nosp@m..nac.nosp@m.kadem.nosp@m.in.s.nosp@m.e

Definition in file lcd_1602_internal.h.