Skip to content

Instantly share code, notes, and snippets.

@kashimAstro
Created June 28, 2018 12:55
Show Gist options
  • Save kashimAstro/1556c1861160db6a25bfff416dd421d5 to your computer and use it in GitHub Desktop.
Save kashimAstro/1556c1861160db6a25bfff416dd421d5 to your computer and use it in GitHub Desktop.
int analog0 = A0;
int analog1 = A1;
void setup()
{
Serial.begin(9600);
}
void loop()
{
int val0 = analogRead(analog0);
Serial.print("A0: ");
Serial.println(val0);
int val1 = analogRead(analog1);
Serial.print("A1: ");
Serial.println(val1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment