Skip to content

Instantly share code, notes, and snippets.

@atduskgreg
Created February 3, 2009 09:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atduskgreg/57430 to your computer and use it in GitHub Desktop.
Save atduskgreg/57430 to your computer and use it in GitHub Desktop.
class Arkx < ArduinoSketch
input_pin 1, :as => :knob
serial_begin
def loop
if serial_available
serial_println analogRead( knob )
serial_read # flush the bit
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment