Created
August 5, 2018 09:33
-
-
Save penpencool/bb0442a6bc8becca97445f202385bab3 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
/* | |
Example By ArduinoAll.com | |
OUT -> A0 | |
VCC -> 3.3-5V | |
GND -> GND | |
*/ | |
void setup() { | |
Serial.begin(9600); | |
pinMode(8, OUTPUT); | |
} | |
void loop() { | |
Serial.print("Light sensor value : "); | |
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