Intermec Janus 2020 Reference Manual - Im_Backlight_Toggle
im_backlight_toggle
3-10
im_backlight_toggle
Purpose:
This function toggles the LCD display backlight on and off.
Syntax:
With Intrmecd_IO, Intrmecp_IO;
Use Intrmecd_IO, Intrmecp_IO;
function im_backlight_toggle return System.Word;
Parameters:
None
.
Return Value:
This function returns one of the standard status codes listed in Appendix A,
“Status Codes.”
Notes:
You can program the backlight to automatically turn off after a specified
time to save battery power. The length of time depends on the backlight
timeout configuration parameter. The configuration parameter is set in
1-second increments. The default is 10 seconds.
This procedure has no effect on the JANUS 2050.
See Also:
im_backlight_on, im_backlight_off
Example
With System, Bit, Text_IO, Intrmecd_IO, Intrmecp_IO;
Use System, Bit, Text_IO, Intrmecd_IO, Intrmecp_IO;
procedure lightogl Is
package SYSWORD_IO is new INTEGER_IO (System.Word);
status : System.Word;
begin
status := im_backlight_toggle;
Put_Line ("Backlt toggled");
if Tstbit(status, 15) then
Put ("Backlight toggle error = ");
SYSWORD_IO.Put (status, WIDTH => 8);
New_Line;
end if;
end lightogl;