19 #ifndef LCD_ADAPTER_MJKDZ_H 20 #define LCD_ADAPTER_MJKDZ_H 25 #include "Driver/PCF8574.h" 56 PCF8574(twi, subaddr),
84 write(buf,
sizeof(buf));
105 write(buf,
sizeof(buf));
114 virtual void write8n(
const void* buf,
size_t size)
116 const uint8_t* bp = (
const uint8_t*) buf;
119 uint8_t n = (size >
sizeof(tmp) / 4 ?
sizeof(tmp) / 4 : size);
122 for (uint8_t i = 0; i < m;) {
123 uint8_t data = *bp++;
virtual void write4b(uint8_t data)
virtual void write8b(uint8_t data)
virtual void set_mode(uint8_t flag)
virtual void set_backlight(uint8_t flag)
uint8_t bt
Back-light (P7).
uint8_t data
Data port (P0..P3).
uint8_t en
Enable pulse (P4).
uint8_t rs
Command/Data select (P6).
MJKDZ(TWI &twi, uint8_t subaddr=7)
port_t m_port
Port setting.
virtual void write8n(const void *buf, size_t size)
uint8_t as_uint8
Unsigned byte access.
uint8_t rw
Read/Write (P5).
Software::TWI< BOARD::D1, BOARD::D2 > twi