5 #include "Software/Serial.h" 8 Software::Serial<BOARD::D0>
Serial;
26 int8_t last = owi.
FIRST;
32 if (last == owi.
ERROR)
break;
43 Serial.print(F(
":family="));
50 if (rom[i] < 0x10)
Serial.print(0);
57 if (rom[i] < 0x10)
Serial.print(0);
61 Serial.print(F(
",resolution="));
65 Serial.print(F(
",trigger=["));
71 Serial.print(F(
"],temperature="));
73 }
while (last != owi.
LAST);
static const uint8_t FAMILY_CODE
Software::Serial< BOARD::D0 > Serial
Software::OWI< BOARD::D1 > owi
void get_trigger(int8_t &low, int8_t &high) const
bool read_scratchpad(bool match=true)
int8_t search_rom(uint8_t family, uint8_t *code, int8_t last=FIRST)
bool convert_request(bool broadcast=false)
void resolution(uint8_t bits)
void rom(const uint8_t *rom)
Last position, search completed.
Start position of search.
static const size_t ROM_MAX
float temperature() const
uint16_t conversion_time()