Skip to content

daisy::LcdHD44780

Module: LIBDAISY / DEVICE

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

#include <lcd_hd44780.h>

Public Classes

Name
struct Config

Public Functions

Name
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()

Detailed Description

class daisy::LcdHD44780;

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

Author: StaffanMelin

Date: March 2021

Public Functions Documentation

function LcdHD44780

inline LcdHD44780()

function ~LcdHD44780

inline ~LcdHD44780()

function Init

void Init(
    const Config & config
)

Parameters:

  • config is a struct that sets cursor on/off, cursor blink on/off and the dsy_gpio_pin's that connects to the LCD.

Initializes the LCD.


function Print

void Print(
    const char * string
)

Parameters:

  • string is a C-formatted string to print.

Prints a string on the LCD.


function PrintInt

void PrintInt(
    int number
)

Parameters:

  • number is an integer to print.

Prints an integer value on the LCD.


function SetCursor

void SetCursor(
    uint8_t row,
    uint8_t col
)

Parameters:

  • row is the row number (0 or 1).
  • col is the column number (0 to 15).

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


function Clear

void Clear()

Clears the contents of the LCD.

---

Updated on 2024-01-03 at 19:41:01 +0000