nmpLCDBrightness (Function) |
Top Previous Next |
This function will set the brightness of the LCD of the NMP device.
Screen saver functionalityStarting with NMP v3.00, brightness level 0 can be used as a screen saver, to reduce the risk of burned in images. If the hardware buttons are enabled, setting the brightness level to 0 will both turn off the backlight and blank the entire screen. Any press on the touchscreen in this mode will be sent as a hardware button press, to allow the user to wake the NMP device manually. When the brightness is set above 0, the screen is restored. To determine when to turn off the screen, the nmpGetIdleTime function can be used, in combination with additional logic, to avoid turning off the screen while navigating.
Input: brightness : SINT (0..100) The brightness of the LCD backlight. The backlight is turned off at level 0 and the brightest at level 100. All devices do not necessarily support all levels but will be mapped to the most correct levels.
Returns: INT
Declaration: FUNCTION nmpLCDBrightness : INT;
Example: INCLUDE rtcu.inc |