add serial readout. finish graph layout
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user