MOVED: convert c code to arduino

This topic has been moved to Project Guidance.
No code
http://forum.arduino.cc/index.php?topic=176257.0