21 #ifndef COSA_ERM1602_5_HH 22 #define COSA_ERM1602_5_HH 59 #if !defined(BOARD_ATTINY) 83 virtual void write4b(uint8_t data);
90 virtual void write8b(uint8_t data);
98 virtual void write8n(
const void* buf,
size_t size);
106 virtual void set_mode(uint8_t flag);
uint8_t m_dirty
Mark register select change required.
virtual void write4b(uint8_t data)
virtual void set_backlight(uint8_t flag)
virtual void set_mode(uint8_t flag)
uint8_t m_rs
Register select (0/instruction, 1/data).
OutputPin m_en
Starts data read/write.
static const uint16_t SHORT_EXEC_TIME
OutputPin m_scl
Serial clock.
virtual void write8n(const void *buf, size_t size)
ERM1602_5(Board::DigitalPin sda=Board::D7, Board::DigitalPin scl=Board::D6, Board::DigitalPin en=Board::D5, Board::DigitalPin bt=Board::D4)
OutputPin m_bt
Back-light control (0/on, 1/off).
OutputPin m_sda
Serial data output.
virtual void write8b(uint8_t data)