it's ok, actualy the fact it's a single c file makes it easier to read
and is a good start for me if I want to tweak or so
I just found ridiculous to use bluetooth while the controller and the pi are in the same box
like most people do (and writing python cos they are too lazy)
you gave a great option to dig in :-)