Sha256: c50b674302e9f0de7229542b869e16ec396821219216c83e5cfcaa251c1e75f9
Contents?: true
Size: 455 Bytes
Versions: 2
Compression:
Stored size: 455 Bytes
Contents
require 'artoo' # Circuit and schematic here: http://arduino.cc/en/Tutorial/Blink connection :firmata, :adaptor => :firmata, :port => '/dev/ttyACM0' #linux #connection :firmata, :adaptor => :firmata, :port => '127.0.0.1:8023' device :board, :driver => :device_info device :led, :driver => :led, :pin => 13 work do puts "Firmware name: #{board.firmware_name}" puts "Firmware version: #{board.version}" every 1.second do led.toggle end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
artoo-arduino-1.4.4 | examples/blink_led_with_toggle.rb |
artoo-arduino-1.4.3 | examples/blink_led_with_toggle.rb |