Changes

Week 3 Lab

7 bytes added, 00:57, 14 April 2009
LED Dimming
*File->Sketchbook->Examples->Analog->Fading
The crux of this sketch is the <code>analogWrite() </code> function.
PWM (pulse width modulation)
*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!