samples/digital_read.rb in arduino_firmata-0.2.0 vs samples/digital_read.rb in arduino_firmata-0.2.1

- old
+ new

@@ -3,13 +3,13 @@ require 'rubygems' require 'arduino_firmata' arduino = ArduinoFirmata.connect ARGV.shift -arduino.pin_mode 7, ArduinoFirmata::INPUT +arduino.pin_mode 2, ArduinoFirmata::INPUT loop do - if arduino.digital_read 7 + if arduino.digital_read 2 puts "on" arduino.digital_write 13, true else puts "off" arduino.digital_write 13, false