Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Britney Beatey
- * Testing Photoresistors
- *
- */
- const int photoPin = A0;
- int photoValue = 0;
- void setup()
- {
- Serial.begin(9600);
- pinMode (photoPin, INPUT);
- }
- void loop()
- {
- photoValue = analogRead (photoPin);
- Serial.print (" Photoresistor value = ");
- Serial.println (photoValue);
- }
Add Comment
Please, Sign In to add comment