add serial readout. finish graph layout

This commit is contained in:
2025-04-22 22:14:43 +02:00
parent c81b2e3fbb
commit 58ebddcd48
7 changed files with 90 additions and 39 deletions

View File

@@ -5,7 +5,8 @@ Display display;
Adafruit_NAU7802 nau;
unsigned long _millis = 0;
int32_t val = 0;
bool goToSleep = False;
bool goToSleep = false;
#if BLE
BLEServer *pServer = NULL;
BLECharacteristic *millisCharacteristic = NULL;
@@ -127,6 +128,8 @@ void loop() {
}
val = nau.read();
Serial.print(millis()); Serial.print(","); Serial.println(val);
#if BLE
if (deviceConnected) {
// Send the sensor reading
@@ -148,7 +151,5 @@ void loop() {
// do stuff here on connecting
oldDeviceConnected = deviceConnected;
}
#else
Serial.print(millis()); Serial.print(","); Serial.println(val);
#endif
}