 
 void display_battery(void)
 {
+#if SHOW_VOLTAGE
+  // display measured voltage
+  sprintf(FreqBuffer, "%.2fv", MeasuredVoltage);
+  lcd.setCursor(9, 1);
+  lcd.print(FreqBuffer);
+#endif
+
   // create special battery character
   lcd.createChar(BatteryChar, BatterySymbol);
 

const int MaxOffsetDigits = 5;

// battery voltage limits
const float MaxVoltage = 8.0;   // battery voltage for "100% full"
const float MinVoltage = 6.4;   // battery voltage for "0% full"

// macro to get number of elements in an array
#define ALEN(a)    (sizeof(a)/sizeof((a)[0]))



//-----------------
// #defines controlling configuration
// set to "1" to turn on feature
//-----------------

// show voltage on screen next to battery symbol
#define SHOW_VOLTAGE  0

//-----------------
// debug bit masks
//-----------------
#define DEBUG_DDS     (1 << 0)  // DDS debug
