Lightbeans Part 3, Making the Night Light, Functions
Now you’ve got all the tools you need to make the nightlight. Use a sensor to detect when it is dark Light an LED when it is dark Turn off the LED when it is bright This is the basic requirement for making a nightlight. I suggest using the RGB led with a subtle fading effect to make a more pleasant to look at. You might also want a diffuser such as a ping pong ball, or some kind of frosted glass enclosure to diffuse the light. ...