Skip to content

Instantly share code, notes, and snippets.

@michaelsarduino
Created September 11, 2015 18:02
Show Gist options
  • Save michaelsarduino/906c23392f7f306b9025 to your computer and use it in GitHub Desktop.
Save michaelsarduino/906c23392f7f306b9025 to your computer and use it in GitHub Desktop.
void setup() {
//starten der seriellen Kommunikation
Serial.begin(9600);
}
void loop() {
//auslesen des Wertes von Pin A0 und senden an PC
Serial.println(analogRead(A0));
//kurz warten
delay(2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment