Function ReadPowerSwitch

From Uzebox Wiki
Jump to: navigation, search
Prototype

unsigned char ReadPowerSwitch();

Description

Detects if the power button is pushed.

Parameters

None

Returns

status of power button

Video Modes

All

Since

V3

Notes

This function works with all hardware versions

Example:

	if(ReadPowerSwitch())
		ToggleLed();//switch the indicator LED on and off when the user presses the power button