Wetterstation_Boris/include/error.h

31 lines
430 B
C
Raw Normal View History

2023-05-18 23:38:20 +02:00
#include <Arduino.h>
2023-05-19 14:15:31 +02:00
#include <EEPROM.h>
2023-05-18 23:38:20 +02:00
#define AkkuLeer 0x80
2023-05-19 14:15:31 +02:00
#define ADS1115noReady 0x01
#define HTU21noReady 0x02
#define BMP280noReady 0x04
#define MCP9808noReady 0x08
byte SystemStatus;
2023-05-18 23:38:20 +02:00
2023-05-19 14:15:31 +02:00
void writeSystemStatus()
{
EEPROM.begin(512);
EEPROM.put(0,SystemStatus);
EEPROM.commit();
EEPROM.end();
2023-05-18 23:38:20 +02:00
}
2023-05-19 14:15:31 +02:00
void readSystemStatus()
2023-05-18 23:38:20 +02:00
{
2023-05-19 14:15:31 +02:00
EEPROM.begin(512);
EEPROM.get(0,SystemStatus);
EEPROM.commit();
EEPROM.end();
2023-05-18 23:38:20 +02:00
}