hansent/hackjr — pull request #7 by bfiegel (2013-11-14 07:21:11+00:00)
Title: Initial demo controller code with an LED and an accelerometer

This creates the initial Arduino Sketch that will monitor an accelerometer as well as control and LED based on whether the controller is dead or alive. It monitors the serial port for the strings "die" and "live" to trigger life and death. It initializes to alive and will immediately stream data.

The accelerometer output is currently quite raw and is in the form of x,y,z with each value ranging from 0 to 1023. The value 512 is at rest. We need to work out what we want the communications protocol to look like.