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.h
Go to the documentation of this file.
1
32
33#ifndef LCD_1602_H_
34#define LCD_1602_H_
35
36#ifdef __cplusplus
37extern "C" {
38#endif
39
40/* Includes --------------------------------------------------------------------------------------*/
41#include "internal/lcd_i2c.h"
42
49#define DEVICE_ADDRESS 0x27
50#define LCD_1602_SCREEN_CHAR_WIDTH 16
51#define LCD_1602_MAX_ROWS 2
53
54
64
79LCD_WRITE_STATUS lcd_1602_send_string(i2c_master_dev_handle_t handle, char *str);
80
88uint8_t lcd_1602_init(i2c_master_dev_handle_t handle);
90
91#ifdef __cplusplus
92extern "C" }
93#endif
94
95#endif
96
LCD_WRITE_STATUS lcd_1602_send_string(i2c_master_dev_handle_t handle, char *str)
Writes out data to the LCD.
Definition lcd_1602.c:111
uint8_t lcd_1602_init(i2c_master_dev_handle_t handle)
initializes the LCD 1602 correctly according to the datasheet.
Definition lcd_1602.c:141
LCD_WRITE_STATUS
Enum for returning the result of writing to the LCD.
Definition lcd_1602.h:58
@ LCD_WRITE_NOT_FINISHED
Definition lcd_1602.h:60
@ LCD_WRITE_INTERRUPTED
Definition lcd_1602.h:61
@ LCD_TOO_LONG_STRING
Definition lcd_1602.h:62
@ LCD_WRITE_FINISHED
Definition lcd_1602.h:59