Good morning all,
I have a raspberry pi controlling RF sockets in order to turn specific lights on and off etc. I also have a USB keyboard which I would like to use as the interface, so as you press a specific key a script gets run turning on different light configurations.
I am struggling to find any links to how this might have been done before. I guess there are two things that need to happen - firstly the keyboard needs to be disabled - it is connected to a headless setup, so I wouldn't want the keyboard typing in the login box that would be open on the pi.
Secondly I would need some way to buffer the keyboard and throw an interupt when a key is pressed.
Are these things possible? And if so could anyone offer any advice as to how to do it?