There are three different outcomes.
First, one set of code lights up a led light based on the brightness measured by the photoresistor. As the amount of light increases, the led brightness increases.
The second outcome reverses the interaction between the photoresistor and the led light: the light increases and the led darkens.
Finally, the led light reacts to a binary input from the photoresistor. If the photoresistor depicts the light dips below a defined threshold, the led light turns on.
Content Rating
Is this a good/useful/informative piece of content to include in the project? Have your say!
You must login before you can post a comment. .