90 Device::read(&res,
sizeof(res));
124 uint8_t* bp = (uint8_t*) buf;
126 while (n--) *bp++ |=
m_ddr;
127 Device::write(buf, size);
135 template<u
int8_t PIN>
139 static const uint8_t
MASK = (1 << (PIN & 0x7));
150 __attribute__((always_inline))
159 __attribute__((always_inline))
181 __attribute__((always_inline))
206 __attribute__((always_inline))
230 TWI::
Device(twi, addr | (subaddr & 0x7)),
PCF8574(TWI &twi, uint8_t subaddr=7)
PCF8574(TWI &twi, uint8_t addr, uint8_t subaddr)
Hardware::TWI twi(100000UL)
void write(uint8_t value)
void write(void *buf, size_t size)
void operator=(int value)
PCF8574A(TWI &twi, uint8_t subaddr=7)
static const uint8_t MASK
Device(TWI &twi, uint8_t addr)