COSA
An Object-Oriented Platform for Arduino Programming
HD44780::IO Class Referenceabstract

#include <HD44780.hh>

Inheritance diagram for HD44780::IO:
Inheritance graph
Collaboration diagram for HD44780::IO:
Collaboration graph

Public Member Functions

virtual bool setup ()=0
 
virtual void write4b (uint8_t data)=0
 
virtual void write8b (uint8_t data)
 
virtual void write8n (const void *buf, size_t size)
 
virtual void set_mode (uint8_t flag)=0
 
virtual void set_backlight (uint8_t flag)=0
 

Detailed Description

Abstract HD44780 LCD IO adapter to isolate communication specific functions and allow access over parallel and serial interfaces; Ports, SR and I2C/TWI.

Definition at line 44 of file HD44780.hh.

Member Function Documentation

virtual void HD44780::IO::set_backlight ( uint8_t  flag)
pure virtual
virtual void HD44780::IO::set_mode ( uint8_t  flag)
pure virtual

Set data/command mode; zero(0) for command, non-zero(1) for data mode.

Parameters
[in]flag.

Implemented in HD44780::SR4W, HD44780::SR3WSPI, HD44780::SR3W, HD44780::Port4b, ERM1602_5, Adafruit_I2C_LCD_Backpack, DFRobot_IIC_LCD_Module, MJKDZ_LCD_Module, and SainSmart_LCD2004.

virtual bool HD44780::IO::setup ( )
pure virtual

Initiate IO port. Called by HD44780::begin(). Should return true(1) for 8-bit mode otherwise false for 4-bit mode.

Returns
bool.

Implemented in HD44780::SR4W, HD44780::SR3WSPI, HD44780::SR3W, HD44780::Port4b, ERM1602_5, Adafruit_I2C_LCD_Backpack, DFRobot_IIC_LCD_Module, MJKDZ_LCD_Module, and SainSmart_LCD2004.

virtual void HD44780::IO::write4b ( uint8_t  data)
pure virtual

Write LSB nibble (4bit) to display.

Parameters
[in]data(4b) to write.

Implemented in HD44780::SR4W, HD44780::SR3WSPI, HD44780::SR3W, HD44780::Port4b, ERM1602_5, Adafruit_I2C_LCD_Backpack, DFRobot_IIC_LCD_Module, MJKDZ_LCD_Module, and SainSmart_LCD2004.

void HD44780::IO::write8b ( uint8_t  data)
virtual

Write byte (8bit) to display.

Parameters
[in]data(8b) to write.

Reimplemented in HD44780::SR4W, HD44780::SR3WSPI, HD44780::SR3W, HD44780::Port4b, ERM1602_5, Adafruit_I2C_LCD_Backpack, DFRobot_IIC_LCD_Module, MJKDZ_LCD_Module, and SainSmart_LCD2004.

Definition at line 24 of file HD44780_IO.cpp.

void HD44780::IO::write8n ( const void *  buf,
size_t  size 
)
virtual

Write character buffer to display.

Parameters
[in]bufpointer to buffer.
[in]sizenumber of bytes in buffer.

Reimplemented in ERM1602_5, Adafruit_I2C_LCD_Backpack, DFRobot_IIC_LCD_Module, MJKDZ_LCD_Module, and SainSmart_LCD2004.

Definition at line 31 of file HD44780_IO.cpp.


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