Created
June 28, 2018 12:55
-
-
Save kashimAstro/1556c1861160db6a25bfff416dd421d5 to your computer and use it in GitHub Desktop.
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
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