Difference between revisions of "Gb.battery.voltage"
From Gamebuino Wiki
m |
m (→Returns: changed int16 to int) |
||
(3 intermediate revisions by one other user not shown) | |||
Line 5: | Line 5: | ||
== Syntax == | == Syntax == | ||
− | <pre>gb. | + | <pre>gb.battery.voltage</pre> |
== Parameters == | == Parameters == | ||
Line 11: | Line 11: | ||
== Returns == | == Returns == | ||
− | unsigned | + | unsigned int: battery voltage. |
== Example == | == Example == |
Latest revision as of 2014-05-24T16:59:14
Description
Gives the measured voltage of the battery expressed in millivolts (mV).
Syntax
gb.battery.voltage
Parameters
none
Returns
unsigned int: battery voltage.
Example
The battery_logger example logs the battery voltage to the micro SD card every 10 minutes. It's provided by default on the SD card and is named BAT-LOG.HEX