18#ifndef HD44780_PARAMS_H
19#define HD44780_PARAMS_H
35#ifndef HD44780_PARAM_COLS
36#define HD44780_PARAM_COLS (16U)
38#ifndef HD44780_PARAM_ROWS
39#define HD44780_PARAM_ROWS (2U)
44#ifndef HD44780_PARAM_PIN_RS
45#define HD44780_PARAM_PIN_RS GPIO_PIN(0, 14)
47#ifndef HD44780_PARAM_PIN_RW
48#define HD44780_PARAM_PIN_RW GPIO_UNDEF
50#ifndef HD44780_PARAM_PIN_ENABLE
51#define HD44780_PARAM_PIN_ENABLE GPIO_PIN(0, 9)
53#ifndef HD44780_PARAM_PINS_DATA
54#define HD44780_PARAM_PINS_DATA { GPIO_PIN(0, 8), \
66#ifndef HD44780_PARAM_PIN_RS
67#define HD44780_PARAM_PIN_RS PCF857X_GPIO_PIN(0, 0)
69#ifndef HD44780_PARAM_PIN_RW
70#define HD44780_PARAM_PIN_RW PCF857X_GPIO_PIN(0, 1)
72#ifndef HD44780_PARAM_PIN_ENABLE
73#define HD44780_PARAM_PIN_ENABLE PCF857X_GPIO_PIN(0, 2)
75#ifndef HD44780_PARAM_PINS_DATA
76#define HD44780_PARAM_PINS_DATA { PCF857X_GPIO_PIN(0, 4), \
77 PCF857X_GPIO_PIN(0, 5), \
78 PCF857X_GPIO_PIN(0, 6), \
79 PCF857X_GPIO_PIN(0, 7), \
89#define HD44780_PARAMS { .cols = HD44780_PARAM_COLS, \
90 .rows = HD44780_PARAM_ROWS, \
91 .rs = HD44780_PARAM_PIN_RS, \
92 .rw = HD44780_PARAM_PIN_RW, \
93 .enable = HD44780_PARAM_PIN_ENABLE, \
94 .data = HD44780_PARAM_PINS_DATA }
Low-level GPIO peripheral driver interface definitions.
static const hd44780_params_t hd44780_params[]
LCM1602C configuration.
Parameters needed for device initialization.