Arduino-LCD
LCD library for Arduino
|
#include <HD44780.h>
Public Member Functions | |
virtual bool | setup () |
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 Adapter class; isolate communication specific functions and allow access over parallel and serial interfaces.
|
pure virtual |
Set backlight on/off.
[in] | flag. |
Implemented in LCD::SR4W< SDA_PIN, SCL_PIN, EN_PIN, BT_PIN >, LCD::DFRobot_IIC, LCD::MJKDZ, LCD::SR3W< SDA_PIN, SCL_PIN, EN_PIN >, LCD::PP7W< D0_PIN, D1_PIN, D2_PIN, D3_PIN, RS_PIN, EN_PIN, BT_PIN >, LCD::PP7W< BOARD::D4, BOARD::D5, BOARD::D6, BOARD::D7, BOARD::D8, BOARD::D9, BOARD::D10 >, and LCD::Debug.
|
pure virtual |
Set data/command mode; zero(0) for command, non-zero(1) for data mode.
[in] | flag. |
Implemented in LCD::SR4W< SDA_PIN, SCL_PIN, EN_PIN, BT_PIN >, LCD::DFRobot_IIC, LCD::MJKDZ, LCD::SR3W< SDA_PIN, SCL_PIN, EN_PIN >, LCD::PP7W< D0_PIN, D1_PIN, D2_PIN, D3_PIN, RS_PIN, EN_PIN, BT_PIN >, LCD::PP7W< BOARD::D4, BOARD::D5, BOARD::D6, BOARD::D7, BOARD::D8, BOARD::D9, BOARD::D10 >, and LCD::Debug.
|
inlinevirtual |
Initiate IO port. Called by HD44780::begin(). Should return true(1) for 8-bit mode otherwise false for 4-bit mode. Default is 4-bit mode.
Reimplemented in LCD::SR4W< SDA_PIN, SCL_PIN, EN_PIN, BT_PIN >, LCD::SR3W< SDA_PIN, SCL_PIN, EN_PIN >, LCD::DFRobot_IIC, LCD::MJKDZ, and LCD::Debug.
|
pure virtual |
Write LSB nibble (4bit) to display.
[in] | data | (4b) to write. |
Implemented in LCD::SR4W< SDA_PIN, SCL_PIN, EN_PIN, BT_PIN >, LCD::SR3W< SDA_PIN, SCL_PIN, EN_PIN >, LCD::PP7W< D0_PIN, D1_PIN, D2_PIN, D3_PIN, RS_PIN, EN_PIN, BT_PIN >, LCD::PP7W< BOARD::D4, BOARD::D5, BOARD::D6, BOARD::D7, BOARD::D8, BOARD::D9, BOARD::D10 >, LCD::DFRobot_IIC, LCD::MJKDZ, and LCD::Debug.
|
inlinevirtual |
Write byte (8bit) to display.
[in] | data | (8b) to write. |
Reimplemented in LCD::SR4W< SDA_PIN, SCL_PIN, EN_PIN, BT_PIN >, LCD::SR3W< SDA_PIN, SCL_PIN, EN_PIN >, LCD::PP7W< D0_PIN, D1_PIN, D2_PIN, D3_PIN, RS_PIN, EN_PIN, BT_PIN >, LCD::PP7W< BOARD::D4, BOARD::D5, BOARD::D6, BOARD::D7, BOARD::D8, BOARD::D9, BOARD::D10 >, LCD::DFRobot_IIC, LCD::MJKDZ, and LCD::Debug.
|
inlinevirtual |
Write character/command buffer to display.
[in] | buf | pointer to buffer. |
[in] | size | number of bytes in buffer. |
Reimplemented in LCD::DFRobot_IIC, and LCD::MJKDZ.