From: Margaret Blue <margaretblue@gm...> - 2008-04-25 18:03:46
1) How do I display an image (jpeg)? I bitbaked the directfb image and
DirectFB demos have been displaying images just fine. \
I don't know where to find any howto on displaying a jpeg. It would be one
stored on an SD card, but accessing it isn't
the problem, I just don't quite understand how to get it on the screen. I
have framebuffer support through directfb I
suppose since I can run all the demos nicely.
I know these sound somewhat basic, but I'm trying to attack the learning
nibble at a time. Once I install python, I'd like to create a python script
to display a jpg from my SD card source. Any help would be appreciated.
2) ALSO, How do I sense the event that the touchscreen has been pressed?
I'm creating a python script that will take an action based on a touchscreen
"button" being pressed.
My ts_test & ts_calibrate work, and I also am running DirectFB, and in the
demo section I ran dfb_input and the demo showed that it sensed my
When I do a cat /dev/input/touchscreen0
I get constantly changing output when i'm not touching the screen, but you
CAN tell when i touch the screen because I get columns and columns of
unfortunately my gumstix just hangs there, but I suppose I just don't know
how to exit properly. But still, it seems to hang my Putty Serial connection
After I do a ts_calibrate or a ts_test shouldn't I expect to see something
along the lines of a GPIO tsc2003 listed in my /proc/interrupts?
cuz this is all i get:
root@...:~$ cat /proc/interrupts
3: 2 SC ohci_hcd:usb1
6: 5 SC pxa2xx-i2c.1
17: 3 SC LCD
18: 16650 SC pxa2xx-i2c.0
22: 939 SC FFUART
23: 7 SC pxa2xx-mci
25: 0 SC DMA
26: 72145 SC PXA Timer Tick
128: 203 GPIO cf_irq
131: 728 GPIO eth0
136: 0 GPIO CF0 nCD
143: 0 GPIO CF0 nSTSCHG
So where is my touchscreen event showing up, and is it normal to get all
those jitters when running a cat /dev/input/touchscreen0?
Thanks for any enlightenment!
View this message in context: http://www.nabble.com/Touchscreen-event-location%2C-how-to-display-jpegs---python--tp16899139p16899139.html
Sent from the Gumstix mailing list archive at Nabble.com.