A passcode program using node.js module "johnny-five" and an Arduino Uno. Turns on an LED when the correct button sequence is pressed
Slides showing it in action and with schematic and alternate code here: http://acingraham.github.io/reveal.js/#/50/5
Uses "equals" Array method from here: http://stackoverflow.com/a/14853974