5,710
edits
Changes
→LED Dimming
*File->Sketchbook->Examples->Analog->Fading
The crux of this sketch is the <code>analogWrite() </code> function.
*lights, fading
<youtube v="62gWVWCyw_w" loop="true"/>
* It looks like a MacBook napping...
* Q: Drive this dimming example with the light sensor from before.
* Q: Make it photophobic, rather than photophilic. How would you change this--in code, and in hardware. You could do either!