Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Misha Weiner photoPin
- const int photoPin = A0;
- void setup()
- {
- // put your setup code here, to run once:
- pinMode (photoPin, INPUT);
- Serial.begin(9600);
- }
- void loop()
- {
- // put your main code here, to run repeatedly:
- int readVal = analogRead(photoPin);
- Serial.println(readVal);
- }
Add Comment
Please, Sign In to add comment