Intermec ck1 Reference Guide
Chapter 2 — Configuring the CK1 System
46
CK1 SDK Programmer’s Reference Manual
There are function calls to let you control the brightness of the CK1
display.
display.
After devLcdAdjustBrightness() is called once or many times, you can call
devLcdRestoreBrightness(). The brightness of the display CK1 goes back
to the value before the adjustment, so you do not have to remember the
value before the adjustment. Also, you can call devLcdSetBrightness() to
set the adjusted value as a default value after calling
devLcdAdjustBrightness().
devLcdRestoreBrightness(). The brightness of the display CK1 goes back
to the value before the adjustment, so you do not have to remember the
value before the adjustment. Also, you can call devLcdSetBrightness() to
set the adjusted value as a default value after calling
devLcdAdjustBrightness().
Changing the Default Brightness by Command Line Operation
The kernel automatically runs /etc/config/es_set_config.sh when the CK1
boots. The /etc/config/es_set_config.sh gets the default brightness from
/etc/config/default_lcdbias and then directly controls display according to
the default brightness. The changed default brightness is kept until you
change it. The related lines of the default brightness setting in
/etc/config/es_set_config.sh are:
boots. The /etc/config/es_set_config.sh gets the default brightness from
/etc/config/default_lcdbias and then directly controls display according to
the default brightness. The changed default brightness is kept until you
change it. The related lines of the default brightness setting in
/etc/config/es_set_config.sh are:
#!/bin/sh
echo “a `cat /etc/config/default_lcdbias` > /proc/lcdctl0
echo “a `cat /etc/config/default_lcdbias` > /proc/lcdctl0
If you want to change the default brightness (for example 70) by hand, log
into the CK1 and type these commands:
into the CK1 and type these commands:
#echo “70” > /etc/config/default_lcdbias
#sh /etc/config/es_set_config.sh
#sh /etc/config/es_set_config.sh
Changing the Brightness by /proc
If you want to adjust brightness (for example 70) by hand, log into the
CK1 and type these commands.
CK1 and type these commands.
#echo “a 70” > /proc/lcdctl0
//’a’ means adjust,
‘70’ is brightness of LCD/LCM
The brightness setting is temporary. The CK1 reloads the default
brightness when it boots.
brightness when it boots.
Example Code
/////////////////////////////////////////////////////////////////
/*****************************************************************
* -------
* Purpose
* -------
* This lcdbias functional sample code is based on lcdbias library.
* By this sample code user can easily know how to use the library
* to control the LCD brightness.
*
* ----------------------------
* Behavior of this sample code
* ----------------------------
* Every test item controls the action of LCD brightness according to
* the respective library function.
*
* -----------------------
/*****************************************************************
* -------
* Purpose
* -------
* This lcdbias functional sample code is based on lcdbias library.
* By this sample code user can easily know how to use the library
* to control the LCD brightness.
*
* ----------------------------
* Behavior of this sample code
* ----------------------------
* Every test item controls the action of LCD brightness according to
* the respective library function.
*
* -----------------------