gb.battery.voltage

From Gamebuino Wiki
Revision as of 2014-05-20T19:44:52 by Rodot (talk | contribs) (creation)
(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.frameDurationMicros

Parameters

none

Returns

unsigned long: time spend to render the last frame in microseconds. It includes time consumed by the library to refresh the screen, update the sound, backlight, battery monitor, etc.

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

Here is a typical voltage evolution during battery discharge (with no sound and no backlight):

Error creating thumbnail: Unable to save thumbnail to destination

See also