Difference between revisions of "Gb.battery.voltage"

From Gamebuino Wiki
Jump to: navigation, search
(some content moved to the power consumption page)
m
Line 1: Line 1:
{{DISPLAYTITLE:gb.battery.voltage}}
+
{{lowercase}}
 
__NOTOC__
 
__NOTOC__
 
== Description ==
 
== Description ==

Revision as of 2014-05-20T21:05:53

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

See also