4 #include "Software/Serial.h" 7 Software::Serial<BOARD::D0>
Serial;
20 uint8_t rom[owi.
ROM_MAX] = { 0 };
21 int8_t last = owi.
FIRST;
25 if (last == owi.
ERROR)
break;
29 for (
size_t i = 0; i <
sizeof(rom); i++)
30 for (uint8_t mask = 0x80; mask != 0; mask >>= 1, pos++) {
31 Serial.print((rom[i] & mask) != 0);
32 if (pos == last)
Serial.print(
'*');
34 if (pos == last)
Serial.print(
'*');
36 }
while (last != owi.
LAST);
Software::Serial< BOARD::D0 > Serial
int8_t search_rom(uint8_t family, uint8_t *code, int8_t last=FIRST)
Software::OWI< BOARD::D1 > owi
Last position, search completed.
Start position of search.
static const size_t ROM_MAX