Sha256: 32d227f2d0f9731e48fc2b2587e39d85db5a7267770f2e0af26f4bd061ce5b51

Contents?: true

Size: 314 Bytes

Versions: 3

Compression:

Stored size: 314 Bytes

Contents

#usr/bin/env ruby
require 'rubygems'
$:.unshift File.expand_path '../lib', File.dirname(__FILE__)
require 'arduino_firmata'

arduino = ArduinoFirmata::Arduino.new ARGV.shift
puts "firmata version #{arduino.version}"

stat = true
loop do
  puts stat
  arduino.digital_write 13, stat
  stat = !stat
  sleep 0.1
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
arduino_firmata-0.0.3 samples/led_blink.rb
arduino_firmata-0.0.2 samples/led_blink.rb
arduino_firmata-0.0.1 samples/led_blink.rb