Skip to content

Instantly share code, notes, and snippets.

@lilyszajn
lilyszajn / WLD Metabolism
Created April 14, 2011 16:54
Arduino Code for Dino Metabolism Interactive at AMNH
//feed the dinosaur good food(button 1) , it's stomache/food level (LED's) increases
//feed it bad food(button2) it's food level increases, but by less
//Turn the toggle to the left - ectothermic - So the dinosaur's hunger level decreases
//so you its stomache empties at a slower rate (hunger variable is lower)
//Turn the toggle to the right - Endothermic - the dinosaur's hunger level increases,
//so its stomache empties faster (hunger is increased)
//the center position of the toggle switch is now switchPin1 - it is not doing anything now