4 #include "Hardware/TWI.h" 21 int8_t last =
owi.FIRST;
24 if (last ==
owi.ERROR)
break;
28 }
while (last !=
owi.LAST);
37 int8_t last =
owi.FIRST;
39 static uint16_t timestamp = 0;
44 last =
owi.alarm_search(rom, last);
45 if (last ==
owi.ERROR)
break;
51 for (
size_t i = 1; i <
owi.ROM_MAX; i++) {
52 if (rom[i] < 0x10)
Serial.print(0);
55 Serial.print(F(
",temperature="));
57 }
while (last !=
owi.LAST);
static const uint8_t FAMILY_CODE
bool read_scratchpad(bool match=true)
bool convert_request(bool broadcast=false)
Software::Serial< BOARD::D0 > Serial
void resolution(uint8_t bits)
Software::OWI< BOARD::D7 > owi
bool write_scratchpad(bool match=true)
void rom(const uint8_t *rom)
void set_trigger(int8_t low, int8_t high)
float temperature() const
uint16_t conversion_time()