Spinning and flippers up/down with the remote
Up to Scripts
Hoi,
Here is a simple python script to control your tux with the remote. Use the left/right keys to spin, ok to stop it and up/down to move the flippers accordingly. Press the stand by button to exit the script.
Get it at http://gist.github.com/40256
PS: At http://linux.ptigeek.net/?page_id=455 (in French), it is said that threading should be used to avoid locking the API. I played with my script, I did not experiment any locking but my event handlers are pretty simple and short.
Here is a simple python script to control your tux with the remote. Use the left/right keys to spin, ok to stop it and up/down to move the flippers accordingly. Press the stand by button to exit the script.
Get it at http://gist.github.com/40256
PS: At http://linux.ptigeek.net/?page_id=455 (in French), it is said that threading should be used to avoid locking the API. I played with my script, I did not experiment any locking but my event handlers are pretty simple and short.
Powered by
Ploneboard