README.md in arduino_firmata-0.2.1 vs README.md in arduino_firmata-0.2.2
- old
+ new
@@ -78,10 +78,10 @@
Analog Read
```ruby
puts arduino.analog_read 0 # => 0 ~ 1023
-arduino.on :analog_read 0 do |pin, value|
+arduino.on :analog_read do |pin, value|
if pin == 0
puts "analog pin #{pin} changed : #{value}"
end
end
```
\ No newline at end of file