Greg Erskine wrote: > hi VMat, > > This is really a piCore issue. It seems like every tce repostitory is > different depending on the version of piCore. People usually request, > via the tinycore forum, that a tce be added to the repository. > > If you start adding tce's to piCorePlayer, be aware that you will > probably need to increase the size of the second partition. piCorePlayer > is made as small as possible, with just enough space in the partition > for the standard tce's and an allowance for an insitu upgrade. > > For basic GPIO options, no extra tce's are required. Just use shell > scripts and the userspace (/sys/class/gpio/). > > Here's an example of controlling a relay to turn the amp off after > squeezelite stops playing for a set period. > > http://www.pinkfishmedia.net/forum/showthread.php?t=165465 > > If you mention what you are trying to do via GPIO I might be able to > point you in the right direction. > > regards > Greg
Hey Greg, thanks for replying. I already expanded the second partition, it's a 4GB card, so there's plenty of space (I guess). I'm running piCorePlayer 1.18b. I added an LCD to the RPi and I'm controlling it via GPIO. It's working, but it has some drawbacks. I have borrowed the code from a python script I found in one of the forums, not sure which... and it keeps polling the server to detect any changes in track names, artists, albums, or elapsed time. The polling routine takes about 0.3s, and there's always an extra delay when changing tracks. I need to poll the server every second to have the elapsed time correctly displayed, and that puts some unnecessary load on the server too. It's not really bad now, but I'd like to try something better. So I'd like to sniff on the TCP packets there are coming from the server and get the changes from there, instead of polling the server all the time. That's why I'm trying to install RPIO, which extends GPIO and adds the TCP callbacks that I'm interested in. I also added a couple of buttons and I'm using the input callbacks in GPIO to have them do things. No problem with that. Thanks, VMat ------------------------------------------------------------------------ VMat's Profile: http://forums.slimdevices.com/member.php?userid=63698 View this thread: http://forums.slimdevices.com/showthread.php?t=97803 _______________________________________________ unix mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/unix
