Sha256: b6e83e3ba310f7ca5c5ccf8deb04c12d2f9bbe89ac4c1fc11023dc53087247e6
Contents?: true
Size: 459 Bytes
Versions: 2
Compression:
Stored size: 459 Bytes
Contents
require 'artoo' # Circuit and schematic here: http://arduino.cc/en/Tutorial/Blink #connection :firmata, :adaptor => :firmata, :port => '/dev/tty*' connection :firmata, :adaptor => :firmata, :port => '127.0.0.1:4567' 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
artoo-arduino-1.3.0 | examples/blink_led.rb |
artoo-arduino-1.2.0 | examples/blink_led.rb |