I've managed to get an LED to blink via the GPIO pins. I've done this via WiringPi and also separately in Scratch GPIO.
My end goal is to be able to press a key on the keyboard and have it activate a GPIO pin that has an LED attached. This is for a halloween costume. I want to code a small program that will autostart when the RasPi boots. It's sole function is detect keyboard presses and trigger the appropriate pin.
In Scratch I can emulate this behavior. I can autolaunch ScratchGPIO but can't autostart an individual project(i think). The costume won't have a screen which is why i want it to autostart.
How can I code a script in C or Python that will detect the appropriate keypress and turn a GPIO pin on?
Thanks!