User manual

Linux Guide taskit GmbH
9.7. Using the knob
The rotary knob on the Panel-Card starterkit board can be used as input device after the
driver has been loaded. The driver module is located in the /config folder.
To start the driver automatically at boot time, add the following line to /config/rc.local:
insmod /config/modules/panelcard-knob.ko
To check whether the driver is loaded or not type the following line: lsmod
To remove the driver enter: rmmod panelcard-knob
To install the driver enter: insmod /config/modules/panelcard-knob.ko
If you are using Trollech's class library Qtopia Core or the Nano-X Window System the
rotary knob will be detected as input device automatically. If you are not using libraries that
automatically detect these input devices, you will have to by-pass the them as STDIN to
your application to get the input:
./yourApplication < /dev/tty1
The following input events (keys) will be posted to the linux event system:
the key left (KEY_LEFT) is posted when turning the knob against clockwise
direction
the key right (KEY_RIGHT) is posted when turning the knob in clockwise direction
the key enter (KEY_ENTER, KEY_RETURN) is posted when the knob is pressed
down
Page 35 of 65 Version 1.26 (2008-04-30)