Nice little kit to get used with the GPIO, I took Sven's code and made the Fish a life changing tool http://pastebin.com/ZiCBWWKw make the question, Push the button, and let the fish decide: Green=Yes Yellow=Maybe/Think it through/try again Red=No i keep a 'screen' session open to run it, but maybe there is a way to keep the process running in the background?
And I meant that to be a 5 starts review :-) Well, it;s more comments, but ok. Fish Dish is super basic, but the GPIOs of the Raspberry are confusing enough. So starting easy like this is cool. My next thing to do will be using a node.js lib on raspberry PI to make use of the fish dish, will post when ready.
I've built upon the snippet posted and put it up on pastebin - the indentation is important with python and it was a bit hard to fix the example posted before. I changed the script slightly, too - press the button to hear the sound and the leds build up from red to yellow to green. http://pastebin.com/8cnxXRNT Cheers!
Love the kit and appreciate marwin66's sample program. Thanks!