 
 
 long const int WaitIndicationInterval = 200;
-unsigned long int lastWaitIndicationUpdate = 0;
+elapsedMillis lastWaitIndicationUpdate;
 
 
 long const int WaitBatteryInterval = 1000;
-unsigned long int lastBatteryIndicationUpdate = 0;
+elapsedMillis lastBatteryIndicationUpdate;
 
 void setup() {
 

  Serial1.flush(); // flush twice to make sure
  
  // reset these to known value
  lastWaitIndicationUpdate = millis();
  lastBatteryIndicationUpdate = millis();
}

void loop() {


// define led brighness here in percentage
#define LED_BRIGHTNESS 5
// for 82-120 ohm series resistor and small 3mm red/green through-hole
// led, 5 % seems fine.
#define ledOutputValue 255*LED_BRIGHTNESS/100

