Skip to content

Instantly share code, notes, and snippets.

@penpencool
Created June 29, 2018 07:18
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 penpencool/88190bc4540e334eeef6e2e9b43ea8fc to your computer and use it in GitHub Desktop.
Save penpencool/88190bc4540e334eeef6e2e9b43ea8fc to your computer and use it in GitHub Desktop.
/*
Example By ArduinoAll
GND - GND
VCC - 3.3 หรือ 5V
AOUT - A0
*/
void setup() {
Serial.begin(9600);
}
void loop() {
int val = analogRead(A0);
Serial.println(val);
delay(500);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment