Built in Variables

  • nAvgBatteryLevel - The average battery level in millivolts. (A value of 9458 represent 9.458 volts.) It's the average of 20 recent samples and smooths out sudden voltage transients
    • Example:
      int batteryAvg = nAvgBatteryLevel; // Assigns variable 'batteryAvg' the average battery level in millivolts.
  • nImmediateBatteryLevel - The last sampled battery level in millivolts. (A value of 9458 represent 9.458 volts.)
    • Example:
      int batteryLevel = nImmediateBatteryLevel;// Assigns variable 'batteryLevel' the current 
                                                // battery level in millivolts.
      
Comments