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++;
172 operator uint8_t() {
return (as_uint8); }
uint8_t rw
Read/Write (P1).
uint8_t rs
Command/Data select (P0).
uint8_t as_uint8
Unsigned byte access.
virtual void write4b(uint8_t data)
uint8_t en
Enable pulse (P2).
port_t m_port
Port setting.
virtual void set_backlight(uint8_t flag)
DFRobot_IIC(TWI &twi, uint8_t subaddr=7)
uint8_t bt
Back-light (P3).
virtual void write8b(uint8_t data)
virtual void set_mode(uint8_t flag)
uint8_t data
Data port (P4..P7).
Software::TWI< BOARD::D1, BOARD::D2 > twi
virtual void write8n(const void *buf, size_t size)