robot.py: fix support for channel 16..31 and add function for accelerometer

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>