gb.battery.voltage

From Gamebuino Wiki
Revision as of 2014-05-24T16:59:14 by Rodot (talk | contribs) (Returns: changed int16 to int)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

See also