Skip to content

Instantly share code, notes, and snippets.

@bnferguson
Created October 17, 2011 02:03
Show Gist options
  • Save bnferguson/1291783 to your computer and use it in GitHub Desktop.
Save bnferguson/1291783 to your computer and use it in GitHub Desktop.
import processing.serial.*;
import cc.arduino.*;
Arduino arduino;
void setup() {
arduino = new Arduino(this, Arduino.list()[0], 115200);
}
void draw() {
println(arduino.analogRead(0));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment