Skip to main content
The Device SDK includes two example sketches. Both use the board’s built-in LED in place of a relay, so you can try them with no wiring. In Arduino IDE, open them from File → Examples → EscapeDirector.

Train door

A lever opens a train door for five seconds. Touch pin 2 to GND to pull the lever. In Escape Director, the prop reports Lever pulled, shows whether the door is Open, and has Open door and Close door commands. In Test mode, Open door lights the LED for one second. Source: examples/room_basic/room_basic.ino
room_basic.ino

Button code

Pressing the buttons on pins 2 to 5 in the order 1-3-2-4 solves the puzzle, and the lock releases two seconds later. Each button connects its pin to GND. Escape Director shows the progress, and staff can release the lock or reset the code. In Test mode, Release lock opens it for one second. The sketch reads every button with room.nextPress() so presses keep their order, and starts over when room.lostPresses() says presses were dropped. Source: examples/button_code/button_code.ino
button_code.ino

Next

Build props with a coding agent