This is the code for a smart grid game made for the Groningen Researcher's Night, 25-9-2015. The hardware you need to play it is currently located in our office :)
To use this code, get an Arduino Due, upload this program, connect the wires as indicated and you're good to go.