3 #include "Hardware/TWI.h" 21 uint8_t rom[
owi.ROM_MAX] = { 0 };
22 int8_t last =
owi.FIRST;
25 last =
owi.search_rom(0, rom, last);
26 if (last ==
owi.ERROR)
break;
30 for (
size_t i = 0; i <
sizeof(rom); i++)
31 for (uint8_t mask = 0x80; mask != 0; mask >>= 1, pos++) {
32 Serial.print((rom[i] & mask) != 0);
33 if (pos == last)
Serial.print(
'*');
35 if (pos == last)
Serial.print(
'*');
37 }
while (last !=
owi.LAST);
Software::Serial< BOARD::D0 > Serial
Software::OWI< BOARD::D1 > owi