COSA
An Object-Oriented Platform for Arduino Programming
|
#include <HD44780.hh>
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 |
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.
|
pure virtual |
Set backlight on/off.
[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.
|
pure virtual |
Set data/command mode; zero(0) for command, non-zero(1) for data mode.
[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.
|
pure virtual |
Initiate IO port. Called by HD44780::begin(). Should return true(1) for 8-bit mode otherwise false for 4-bit mode.
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.
|
pure virtual |
Write LSB nibble (4bit) to display.
[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.
|
virtual |
Write byte (8bit) to display.
[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.
|
virtual |
Write character buffer to display.
[in] | buf | pointer to buffer. |
[in] | size | number 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.