sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
Tiny_OWSlave_OWH_DS18B20_thermometer.ino File Reference
#include "OneWireHub.h"
#include "DS18B20.h"

Functions

bool blinking (void)
 
void setup ()
 
void loop ()
 
float getTemp (void)
 
float getVcc (void)
 
float chipTemp (float raw)
 
int getADC ()
 

Variables

constexpr bool enable_debug = 0
 
constexpr uint8_t pin_led { 0 }
 
constexpr uint8_t pin_onewire { 2 }
 
auto hub = OneWireHub(pin_onewire)
 
auto ds18b20 = DS18B20(DS18B20::family_code, 0x00, 0x00, 0xB2, 0x18, 0xDA, 0x00)
 

Function Documentation

bool blinking ( void  )

OneWireHub OneWire slave status update function.

Parameters
void
Returns
Integer indicating whether status updated with 1
float chipTemp ( float  raw)
int getADC ( )
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)
constexpr bool enable_debug = 0
auto hub = OneWireHub(pin_onewire)
constexpr uint8_t pin_led { 0 }
constexpr uint8_t pin_onewire { 2 }