Skip to content

Instantly share code, notes, and snippets.

@AJIOB
Created February 28, 2018 08:16
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 AJIOB/2415fb6558a28d0c1d2c1ca90e570c6f to your computer and use it in GitHub Desktop.
Save AJIOB/2415fb6558a28d0c1d2c1ca90e570c6f to your computer and use it in GitHub Desktop.
const uint8_t pin = A0;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(pin, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println(analogRead(pin));
delay(500);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment