4 #define USE_SOFTWARE_TWI 6 #if defined(USE_SOFTWARE_TWI) 9 #if defined(ARDUINO_attiny) 10 #include "Software/Serial.h" 11 Software::Serial<BOARD::D0> Serial;
39 for (uint8_t addr = 3; addr < 128; addr++) {
42 int res = dev.
write(NULL);
44 if (res < 0)
continue;
46 Serial.print(F(
":addr=0x"));
47 if (addr < 0x10) Serial.print(0);
48 Serial.println(addr, HEX);
int write(const void *buf, size_t count)
Software::TWI< BOARD::D18, BOARD::D19 > twi