Created
January 8, 2010 00:05
-
-
Save lostcaggy/271738 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Serialcom1 < ArduinoSketch | |
#Serial coms example, read value from sensor | |
#page 69 Getting started with arduino | |
input_pin 0, :as => :sensor | |
serial_begin :rate => 19200 | |
def loop | |
serial_println analogRead sensor | |
delay 1000 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment