Skip to content

Instantly share code, notes, and snippets.

@vtsatskin
Last active August 29, 2015 14:25
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 vtsatskin/2f2aa13d236ebe2d17a5 to your computer and use it in GitHub Desktop.
Save vtsatskin/2f2aa13d236ebe2d17a5 to your computer and use it in GitHub Desktop.
Reading Analog pins on Arduino and streaming over serial USB
void setup(void) {
Serial.begin(9600);
Serial.println("Setup happened: serial initiated");
}
void loop() {
int pin0 = analogRead(A0);
Serial.println(pin0);
delay(125);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment