samples/digital_read.rb in arduino_firmata-0.0.3 vs samples/digital_read.rb in arduino_firmata-0.0.4

- old
+ new

@@ -1,10 +1,10 @@ #usr/bin/env ruby require 'rubygems' $:.unshift File.expand_path '../lib', File.dirname(__FILE__) require 'arduino_firmata' -arduino = ArduinoFirmata::Arduino.new ARGV.shift +arduino = ArduinoFirmata.connect ARGV.shift arduino.pin_mode 7, ArduinoFirmata::INPUT loop do if arduino.digital_read 7