sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
Tiny_OWSlave_OWH_DS18B20_thermo-hygrometer.ino File Reference
#include "OneWireHub.h"
#include "DS18B20.h"
#include "Adafruit_Si7021_Tiny.h"
#include <avr/wdt.h>

Macros

#define TEMP_OFFSET   -260
 
#define TEMP_COEFF   1.0
 

Functions

bool blinking (void)
 
void setup ()
 
void loop ()
 
float getTemp (void)
 
float getVcc (void)
 

Variables

constexpr uint8_t pin_led { 1 }
 
constexpr uint8_t pin_onewire { 4 }
 
auto hub = OneWireHub(pin_onewire)
 
auto ds18b20 = DS18B20(DS18B20::family_code, 0x00, 0x00, 0xB2, 0x18, 0xDA, 0x00)
 
auto ds18b21 = DS18B20(DS18B20::family_code, 0x01, 0x00, 0xB2, 0x18, 0xDA, 0x00)
 
auto ds18b22 = DS18B20(DS18B20::family_code, 0x02, 0x00, 0xB2, 0x18, 0xDA, 0x00)
 
auto ds18b23 = DS18B20(DS18B20::family_code, 0x03, 0x00, 0xB2, 0x18, 0xDA, 0x00)
 
Adafruit_Si7021_Tiny sensor = Adafruit_Si7021_Tiny()
 

Macro Definition Documentation

#define TEMP_COEFF   1.0
#define TEMP_OFFSET   -260

Function Documentation

bool blinking ( void  )
float getTemp ( void  )
float getVcc ( void  )
void loop ( void  )

OneWirePJON device status update function.

Returns
(void)
void setup ( void  )

Arduino IDE: put your setup code here, to run once.

Variable Documentation

auto ds18b20 = DS18B20(DS18B20::family_code, 0x00, 0x00, 0xB2, 0x18, 0xDA, 0x00)
auto ds18b21 = DS18B20(DS18B20::family_code, 0x01, 0x00, 0xB2, 0x18, 0xDA, 0x00)
auto ds18b22 = DS18B20(DS18B20::family_code, 0x02, 0x00, 0xB2, 0x18, 0xDA, 0x00)
auto ds18b23 = DS18B20(DS18B20::family_code, 0x03, 0x00, 0xB2, 0x18, 0xDA, 0x00)
auto hub = OneWireHub(pin_onewire)
constexpr uint8_t pin_led { 1 }
constexpr uint8_t pin_onewire { 4 }
Adafruit_Si7021_Tiny sensor = Adafruit_Si7021_Tiny()