Skip to content

Instantly share code, notes, and snippets.

@alexglow
Created June 25, 2014 06:51
Show Gist options
  • Save alexglow/eaec1ca7af2a9bbfad38 to your computer and use it in GitHub Desktop.
Save alexglow/eaec1ca7af2a9bbfad38 to your computer and use it in GitHub Desktop.
Pinoccio: Radar
LEAD SCOUT
function startup { run radar, 1000 }
function radar { led.green(500); message.group(7) }
FIELD SCOUTs
function on.message.group { if (arg(1) == 7) { t = 0; led.green(500); } }
function counter { if (t == 2) { led.orange }; if (t == 4) { led.red }; t = t+1; }
function startup { run counter, 1000 }
• Turn on Lead Scout & leave it plugged in
• Turn on one Field Scout & walk off; wait until it turns red, then come back until it stays green & stash it
• Do the same until you have only one left
• Climb a tree and trigger stuff from way-far!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment