I've got project which needs to take input from a set of switches (keypad) on an arduino, send the keypress to my windows box where it will be read, probably by python, and then a keystroke sent to the currently active window. It is going to be a way to control a carpc with the buttons from a standard head unit. I've got the circuit and connections sorted, and I can send the data, but i would like some advice on the best way to implement the serial.
Is Python going to be the easiest and least resource hungry way to do this? Can anyone offer any sample code on how to go about parsing a simple serial protocol? I've done some googling but i cant really find what i'm after.
The protocol only needs to be simple, something like Startbit, key pressed, end bit, maybe '@[keypressed]#'.
Thanks for your help!