5 #include "Software/Serial.h" 8 Software::Serial<BOARD::D0>
Serial;
20 int8_t last = owi.
FIRST;
23 if (last == owi.
ERROR)
break;
27 }
while (last != owi.
LAST);
36 int8_t last = owi.
FIRST;
38 static uint16_t timestamp = 0;
44 if (last == owi.
ERROR)
break;
50 for (
size_t i = 1; i < owi.
ROM_MAX; i++) {
51 if (rom[i] < 0x10)
Serial.print(0);
54 Serial.print(F(
",temperature="));
56 }
while (last != owi.
LAST);
int8_t alarm_search(uint8_t *code, int8_t last=FIRST)
static const uint8_t FAMILY_CODE
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)
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)
Last position, search completed.
Start position of search.
void set_trigger(int8_t low, int8_t high)
static const size_t ROM_MAX
float temperature() const
uint16_t conversion_time()