hd44780.h File Reference

Interface definition for the HD44780 LCD driver. More...

Detailed Description

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

Definition in file hd44780.h.

#include <stdint.h>
#include "periph/gpio.h"
+ Include dependency graph for hd44780.h:

Go to the source code of this file.

Data Structures

struct  hd44780_params_t
 Parameters needed for device initialization. More...
 
struct  hd44780_t
 Device descriptor for HD44780 LCD. More...
 

Macros

#define HD44780_MAX_COLS   (40U)
 Maximal number of columns supported by the driver.
 
#define HD44780_MAX_ROWS   (4U)
 Maximal number of rows supported by the driver.
 
#define HD44780_MAX_PINS   (8U)
 Number of data pins for communication 4 or 8.
 
#define HD44780_RW_OFF   (255U)
 Specific value to turn rw pin off, if unused.
 
#define HD44780_CGRAM_SIZE   (8U)
 Size of RAM for custom chars. More...
 

Enumerations

enum  hd44780_state_t { HD44780_OFF, HD44780_ON }
 Simple state values. More...
 

Functions

int hd44780_init (hd44780_t *dev, const hd44780_params_t *params)
 Initialize the given driver. More...
 
void hd44780_clear (hd44780_t *dev)
 Clear display, delete all chars. More...
 
void hd44780_home (hd44780_t *dev)
 Reset cursor to row 0 and column 0. More...
 
void hd44780_set_cursor (hd44780_t *dev, uint8_t col, uint8_t row)
 Set cursor to specific position in column and row. More...
 
void hd44780_display (hd44780_t *dev, hd44780_state_t state)
 Turn display on or off. More...
 
void hd44780_cursor (hd44780_t *dev, hd44780_state_t state)
 Show cursor, on or off. More...
 
void hd44780_blink (hd44780_t *dev, hd44780_state_t state)
 Blink cursor, on or off. More...
 
void hd44780_scroll_left (hd44780_t *dev)
 Enable left scrolling. More...
 
void hd44780_scroll_right (hd44780_t *dev)
 Enable right scrolling. More...
 
void hd44780_left2right (hd44780_t *dev)
 set display direction left to right More...
 
void hd44780_right2left (hd44780_t *dev)
 set display direction right to left More...
 
void hd44780_autoscroll (hd44780_t *dev, hd44780_state_t state)
 display autoscroll on or off More...
 
void hd44780_create_char (hd44780_t *dev, uint8_t location, uint8_t charmap[])
 Create and store a custom character on display memory. More...
 
void hd44780_write (hd44780_t *dev, uint8_t value)
 Write a single character on the LCD. More...
 
void hd44780_print (hd44780_t *dev, const char *data)
 Write a string on the LCD. More...