hd44780: Driver for HD44780 compatible LCD text displays

struct hd44780
#include <hd44780.h>

LCD descriptor.

Fill it before use.

Public Members

hd44780_write_cb_t write_cb

Data write callback.

Set it to NULL in case of direct LCD connection to GPIO

uint8_t rs

GPIO/register bit used for RS pin.

uint8_t e

GPIO/register bit used for E pin.

uint8_t d4

GPIO/register bit used for D4 pin.

uint8_t d5

GPIO/register bit used for D5 pin.

uint8_t d6

GPIO/register bit used for D5 pin.

uint8_t d7

GPIO/register bit used for D5 pin.

uint8_t bl

GPIO/register bit used for backlight.

Set it HD44780_NOT_USED if no backlight used

struct hd44780 pins
hd44780_font_t font

LCD Font type.

uint8_t lines

Number of lines for LCD.

Many 16x1 LCD has two lines (like 8x2)

bool backlight

Current backlight state.