Back to Parent

Using a Photoresistor

Exercise 1

Modify the program so that the LED shows the opposite. When there is little light, it will be bright and when there’s lots of light, it will be off.

I changed the PWM range from 255 to 0 in map( photoCellReading, 0, 4095, 255, 0 ). 

Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!