Loading...
Searching...
No Matches
hd44780_params.h File Reference

Pinout config for the HD44780 display. More...

Detailed Description

Pinout config for the HD44780 display.

Author
Sebastian Meiling s@mln.nosp@m.g.ne.nosp@m.t

Definition in file hd44780_params.h.

#include "board.h"
#include "periph/gpio.h"
+ Include dependency graph for hd44780_params.h:

Go to the source code of this file.

#define HD44780_PARAM_COLS   (16U)
 
#define HD44780_PARAM_ROWS   (2U)
 
#define HD44780_PARAM_PIN_RS   GPIO_PIN(0, 14) /* Arduino D2 */
 
#define HD44780_PARAM_PIN_RW   GPIO_UNDEF
 
#define HD44780_PARAM_PIN_ENABLE   GPIO_PIN(0, 9) /* Arduino D3 */
 
#define HD44780_PARAM_PINS_DATA
 
#define HD44780_PARAMS
 
static const hd44780_params_t hd44780_params []
 LCM1602C configuration.
 

Macro Definition Documentation

◆ HD44780_PARAM_COLS

#define HD44780_PARAM_COLS   (16U)

Definition at line 36 of file hd44780_params.h.

◆ HD44780_PARAM_PIN_ENABLE

#define HD44780_PARAM_PIN_ENABLE   GPIO_PIN(0, 9) /* Arduino D3 */

Definition at line 51 of file hd44780_params.h.

◆ HD44780_PARAM_PIN_RS

#define HD44780_PARAM_PIN_RS   GPIO_PIN(0, 14) /* Arduino D2 */

Definition at line 45 of file hd44780_params.h.

◆ HD44780_PARAM_PIN_RW

#define HD44780_PARAM_PIN_RW   GPIO_UNDEF

Definition at line 48 of file hd44780_params.h.

◆ HD44780_PARAM_PINS_DATA

#define HD44780_PARAM_PINS_DATA
Value:
{ GPIO_PIN(0, 8), /* Arduino D4 */ \
GPIO_PIN(0, 15), /* Arduino D5 */ \
GPIO_PIN(0, 20), /* Arduino D6 */ \
GPIO_PIN(0, 21), /* Arduino D7 */ \
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition periph_cpu.h:46
#define GPIO_UNDEF
Definition of a fitting UNDEF value.

Definition at line 54 of file hd44780_params.h.

◆ HD44780_PARAM_ROWS

#define HD44780_PARAM_ROWS   (2U)

Definition at line 39 of file hd44780_params.h.

◆ HD44780_PARAMS

#define HD44780_PARAMS
Value:
{ .cols = HD44780_PARAM_COLS, \
.rows = HD44780_PARAM_ROWS, \
.rs = HD44780_PARAM_PIN_RS, \
.rw = HD44780_PARAM_PIN_RW, \
.enable = HD44780_PARAM_PIN_ENABLE, \
.data = HD44780_PARAM_PINS_DATA }

Definition at line 89 of file hd44780_params.h.

Variable Documentation

◆ hd44780_params

const hd44780_params_t hd44780_params[]
static
Initial value:
=
{
HD44780_PARAMS,
}

LCM1602C configuration.

Definition at line 100 of file hd44780_params.h.