weinerm21

Untitled

Jun 7th, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1.  
  2. //Misha Weiner photoPin
  3.  
  4. const int photoPin = A0;
  5. void setup()
  6. {
  7. // put your setup code here, to run once:
  8. pinMode (photoPin, INPUT);
  9. Serial.begin(9600);
  10. }
  11.  
  12. void loop()
  13. {
  14. // put your main code here, to run repeatedly:
  15. int readVal = analogRead(photoPin);
  16. Serial.println(readVal);
  17. }
Add Comment
Please, Sign In to add comment