System#

Hardware abstraction layer for system functions. These are often more complex functions that compose a complete piece of functionality. At the moment this is only for systemScreenshot which takes a screenshot, and systemMaker to identify the maker of the platform.

Functions#

Functions

void systemScreenshot(void)#

Take a screenshot.

Creates an image file with an appropriate name that is a bitmap of the contents of the LCD.

const char *systemMaker(void)#

Identify the maker of the platform.

Returns

string identifying the maker that will appear in the WHO? screen

void systemProcessEvents(void)#

Process events in the platform event queue.

These events should trigger the usual btnPressed or timerRun calls as usual. This method is called when there is a long delay before returning to the main loop, such as when executing a program.

void systemQuit(void)#

Quit the application.

This is called after the state has been saved.

uint32_t systemBatteryVoltage(void)#

Get the current battery voltage if applicable.

Systems without a battery should return the fixed value 3100.

Returns

battery voltage