Arduino Analog WriteMega


Posted on Feb 6, 2014    8933

Connect the longer, positive legs of (anodes) 12 LEDs to digital pins 2-13 through 220 ohm current limiting resistors. Connect the shorter, negative legs (cathodes) to ground. moves through each of the LEDS one by one, from the lowest pin to the highest. Before this loop is allowed to move from one pin to the next, two things must be accomplished.


Arduino Analog WriteMega
Click here to download the full size of the above Circuit.

First, you brighten the individual LED through these lines of code:




Leave Comment

characters left:

Related Circuits

  • New Circuits

    .

     



    Top