Sha256: 15d3caa750e6bada5eda59c62f0e72cd482ba5911de3afcf3590608e45eefd13

Contents?: true

Size: 445 Bytes

Versions: 5

Compression:

Stored size: 445 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: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

5 entries across 5 versions & 1 rubygems

Version Path
artoo-arduino-1.4.2 examples/blink_led_with_toggle.rb
artoo-arduino-1.4.1 examples/blink_led_with_toggle.rb
artoo-arduino-1.4.0 examples/blink_led_with_toggle.rb
artoo-arduino-1.3.0 examples/blink_led_with_toggle.rb
artoo-arduino-1.2.0 examples/blink_led_with_toggle.rb