Written in Propeller Assembly uses a 'cordic' routine to convert x and y tilt information into polar coordinates. Output is RAW data, but can easily be resolved into acceleration (ro) ...
This is a slightly modified version of the keyboard driver included with the Propeller Tool. Rather than being passed the pin numbers of the clock and data pins the 1st ...