I just watched Ladyada's chumby hacking video from years back. Pretty cool!
Hoping someone here can provide insight to my following questions:
A little background first. I'm doing some hacking on my Chumby One using one of the alternative falconwing images from: http://files.chumby.com/source/
I'm using python/pygame because I'm hoping to use the Chumby USB port to drive a midi interface.
My current challenge is trying to interface with the device drivers for the top button and the side knob (I want to use the knob and switch within my python app). Comparing the default Chumby build and this alternative OE image I'm seeing a few differences. The /dev/switch device is simply missing. And perhaps less serious the symlink for the joystick link below doesn't exist:
[From original chumby build]
chumby:/dev/input/by-id# ls -l
lrwxrwxrwx 1 root root 9 Dec 31 1969 soc-noserial-event-joystick -> ../event2
From the chumby site forums I saw flash coding examples that appear to see the knob as a mousewheel, but I don't know if that translates to similar calls in python for mousewheel events. Wondering if that should that be the case across the board?
I'm also wondering why there doesn't appear to be a /dev/sequencer device while the /dev/midi (raw) is there... Maybe I need to rebuild ALSA to get this?
My alternative image seems to have some Chumby built drivers initializing but the differences are apparent:
[ 0.880000] Chumby bend sensor driver version 2.3-Falconwing initializing (email@example.com
[ 0.890000] input: bend-sensor as /devices/platform/bend-sensor/input/input0
[ 0.930000] input: STMP3XXX touchscreen as /devices/virtual/input/input1
[ 0.930000] input: stmp3xxx-rotdec as /devices/virtual/input/input2
Is the knob /dev/input/event2
and the switch actually /dev/input/event0 ?
root@chumby-falconwing:/dev/input# ls -lR
drwxr-xr-x 2 root root 100 Jun 2 18:33 by-id
drwxr-xr-x 2 root root 60 Jun 2 18:33 by-path
crw-r----- 1 root root 13, 64 Jun 2 18:33 event0
crw-r----- 1 root root 13, 65 Jun 2 18:33 event1
crw-r----- 1 root root 13, 66 Jun 2 18:33 event2
crw-r----- 1 root root 13, 63 Jun 2 18:33 mice
crw-r----- 1 root root 13, 32 Jun 2 18:33 mouse0
lrwxrwxrwx 1 root root 6 Jun 2 18:33 touchscreen0 -> event1
lrwxrwxrwx 1 root root 9 Jun 2 18:33 soc-noserial-event-kbd -> ../event0
lrwxrwxrwx 1 root root 9 Jun 2 18:33 soc-noserial-event-ts -> ../event1
lrwxrwxrwx 1 root root 9 Jun 2 18:33 soc-noserial-ts -> ../mouse0
lrwxrwxrwx 1 root root 9 Jun 2 18:33 platform-bend-sensor-event-kbd -> ../event0
Before I run my pygame app I need the following 'export' in order to get the touchscreen to work, any idea if I'll need something similar for the rotary wheel and switch?
# export SDL_MOUSEDRV=TSLIB
If you know about any of these details I'd appreciate your responses..