Last active
August 29, 2015 14:25
-
-
Save vtsatskin/2f2aa13d236ebe2d17a5 to your computer and use it in GitHub Desktop.
Reading Analog pins on Arduino and streaming over serial USB
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
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