samples/digital_read.rb in arduino_firmata-0.0.6 vs samples/digital_read.rb in arduino_firmata-0.0.7
- old
+ new
@@ -1,7 +1,7 @@
#usr/bin/env ruby
-require 'rubygems'
$:.unshift File.expand_path '../lib', File.dirname(__FILE__)
+require 'rubygems'
require 'arduino_firmata'
arduino = ArduinoFirmata.connect ARGV.shift
arduino.pin_mode 7, ArduinoFirmata::INPUT