MCUHWC:GetBatteryVoltage: Difference between revisions
Line 14: | Line 14: | ||
=Description= | =Description= | ||
Returns the battery | Returns a number which can be used to calculate the voltage using this formula: <code>magic * (voltage / 256)</code> where <code>magic</code> is a constant number which seems to range somewhere between <code>4.6</code> and <code>5.0</code>. Based on calculations and battery behavior it seems like it's indeed <code>5.0</code>. | ||