libDaisy
Hardware Library for Daisy
Loading...
Searching...
No Matches
daisy::LcdHD44780 Class Reference

Device Driver for 16x2 LCD panel.
HD44780 with 4 data lines.
Example product: https://www.adafruit.com/product/181. More...

Detailed Description

Device Driver for 16x2 LCD panel.
HD44780 with 4 data lines.
Example product: https://www.adafruit.com/product/181.

Author
StaffanMelin
Date
March 2021

#include <lcd_hd44780.h>

Classes

struct  Config
 

Public Member Functions

 LcdHD44780 ()
 
 ~LcdHD44780 ()
 
void Init (const Config &config)
 
void Print (const char *string)
 
void PrintInt (int number)
 
void SetCursor (uint8_t row, uint8_t col)
 
void Clear ()
 

Constructor & Destructor Documentation

◆ LcdHD44780()

daisy::LcdHD44780::LcdHD44780 ( )
inline

◆ ~LcdHD44780()

daisy::LcdHD44780::~LcdHD44780 ( )
inline

Member Function Documentation

◆ Clear()

void daisy::LcdHD44780::Clear ( )

Clears the contents of the LCD.

◆ Init()

void daisy::LcdHD44780::Init ( const Config config)

Initializes the LCD.

Parameters
configis a struct that sets cursor on/off, cursor blink on/off and the dsy_gpio_pin's that connects to the LCD.

◆ Print()

void daisy::LcdHD44780::Print ( const char string)

Prints a string on the LCD.

Parameters
stringis a C-formatted string to print.

◆ PrintInt()

void daisy::LcdHD44780::PrintInt ( int  number)

Prints an integer value on the LCD.

Parameters
numberis an integer to print.

◆ SetCursor()

void daisy::LcdHD44780::SetCursor ( uint8_t  row,
uint8_t  col 
)

Moves the cursor of the LCD (the place to print the next value).

Parameters
rowis the row number (0 or 1).
colis the column number (0 to 15).

The documentation for this class was generated from the following file: