Arduino-LCD
LCD library for Arduino
|
#include <DFRobot_IIC.h>
Classes | |
union | port_t |
Public Member Functions | |
DFRobot_IIC (TWI &twi, uint8_t subaddr=7) | |
virtual bool | setup () |
virtual void | write4b (uint8_t data) |
virtual void | write8b (uint8_t data) |
virtual void | write8n (const void *buf, size_t size) |
virtual void | set_mode (uint8_t flag) |
virtual void | set_backlight (uint8_t flag) |
Protected Attributes | |
port_t | m_port |
Port setting. More... | |
Definition at line 48 of file DFRobot_IIC.h.
|
inline |
Construct HD44780 adapter when using the DFRobot I2C/TWI I/O expander with given sub-address (A0..A2).
[in] | subaddr | sub-address (0..7, default 7). |
Definition at line 55 of file DFRobot_IIC.h.
|
inlinevirtual |
Set backlight on/off.
[in] | flag. |
Implements HD44780::Adapter.
Definition at line 155 of file DFRobot_IIC.h.
|
inlinevirtual |
Set instruction/data mode; zero for instruction, non-zero for data mode.
[in] | flag. |
Implements HD44780::Adapter.
Definition at line 145 of file DFRobot_IIC.h.
|
inlinevirtual |
Initiate TWI interface. Returns false.
Reimplemented from HD44780::Adapter.
Definition at line 65 of file DFRobot_IIC.h.
|
inlinevirtual |
Write nibble to display using TWI interface.
[in] | data | (4b) to write. |
Implements HD44780::Adapter.
Definition at line 76 of file DFRobot_IIC.h.
|
inlinevirtual |
Write byte (8bit) to display.
[in] | data | (8b) to write. |
Reimplemented from HD44780::Adapter.
Definition at line 92 of file DFRobot_IIC.h.
|
inlinevirtual |
Write character buffer to display.
[in] | buf | pointer to buffer. |
[in] | size | number of bytes in buffer. |
Reimplemented from HD44780::Adapter.
Definition at line 114 of file DFRobot_IIC.h.
|
protected |
Port setting.
Definition at line 175 of file DFRobot_IIC.h.