nmpHardwareButtonPressedReceive (Functionblock) |
Top Previous Next |
This function block returns the ID of a pressed hardware button on an NMP. To enable this event, call nmpHardwareButtonsEnable. Note that the ID is only valid after a "Hardware Button Pressed" event is raised; the event will be removed when this function block is called.
If hardware buttons are enabled, and the lcd backlight is set to level 0, any press on the touchscreen will be sent as button id 100, useful to e.g. wake the device from a screen saver mode.
Input: None.
Output: id : INT The ID of the pressed button. Possible values:
ready : BOOL
Declaration: FUNCTION_BLOCK nmpHardwareButtonPressedReceive;
Example: INCLUDE rtcu.inc |