Add DS18B20 temperature sensor support
This commit is contained in:
@@ -1,13 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
struct SensorData {
|
||||
float fridgeZone1 = 36.0;
|
||||
float fridgeZone2 = 12.0;
|
||||
float rearSeat = 78.0;
|
||||
float outsideAir = 88.0;
|
||||
float fridgeZone1 = -127.0;
|
||||
float fridgeZone2 = -127.0;
|
||||
float rearSeat = -127.0;
|
||||
float outsideAir = -127.0;
|
||||
|
||||
bool fridgeZone1Online = false;
|
||||
bool fridgeZone2Online = false;
|
||||
bool rearSeatOnline = false;
|
||||
bool outsideAirOnline = false;
|
||||
};
|
||||
|
||||
extern SensorData sensors;
|
||||
|
||||
void initSensors();
|
||||
void updateSensors();
|
||||
void printSensorAddresses();
|
||||
|
||||
Reference in New Issue
Block a user