Skip to content

Instantly share code, notes, and snippets.

@scalone
Created September 18, 2015 13:55
Show Gist options
  • Save scalone/7326fba7ad7ceabada51 to your computer and use it in GitHub Desktop.
Save scalone/7326fba7ad7ceabada51 to your computer and use it in GitHub Desktop.
require 'artoo'
connection :raspi, :adaptor => :raspi
device :led, :driver => :led, :pin => 11
work do
every 1.second do
led.toggle
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment