samples/tweet_temperature.rb in arduino_firmata-0.0.3 vs samples/tweet_temperature.rb in arduino_firmata-0.0.4
- old
+ new
@@ -3,10 +3,10 @@
require 'rubygems'
$:.unshift File.expand_path '../lib', File.dirname(__FILE__)
require 'arduino_firmata'
require 'tw'
-arduino = ArduinoFirmata::Arduino.new
+arduino = ArduinoFirmata.connect
## LM35DZ -> Analog 1 PIN
puts temp = arduino.analog_read(1)*100*5/1024
client = Tw::Client.new
client.auth