The code running on the Spark Core.

Assumes the LEDs are connected through an N Channel Mosfet to A0.