Created
September 23, 2014 18:40
-
-
Save fearoffish/51ff160524cd6e817927 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'artoo' | |
# Circuit and schematic here: http://arduino.cc/en/Tutorial/Blink | |
connection :firmata, adaptor: :firmata, port: '/dev/tty.usbmodem1411' | |
# device :board, :driver => :device_info | |
device :led, :driver => :led, :pin => 13 | |
work do | |
# puts "Firmware name: #{board.firmware_name}" | |
# puts "Firmata version: #{board.version}" | |
every 1.second do | |
led.on? ? led.off : led.on | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment