Something I discovered recently (may not be of any use to you but probably handy to know). The Arduino has 6 PWM pins, controlled by 3 timers. Now obviously each *pin* can be set to a seperate duty cycle (0 - 255), but also each *timer* can be set to a separate frequency. So, if you need it for anything, you can have 3 different PWM frequencies, but each pair of pins shares that frequency. There's also some other PWM modes ( http://playground.arduino.cc/Main/TimerPWMCheatsheet ) that may be useful to know.
Makes it possible to control your LEDs with a high frequency, but also if you need to run something else lower, say a motor or something, you can do that to. Don't know if you can use that library to control it (probably, not looked) but you can control it directly from the arduino with the right commands (see link above).
▪
┌────┐ ┌────┐
│ │ │ │ ▪
│ └────┘ │
│ ──┐ ┌── │ ▪
┌──────┤ ▪ ▪ │
┌┘ │ │ ▪
┌─┤ └──┐ │ │ ┌──┘
│ │ │ ││ ││ │ ┌─┐
│ │ └─┼┤ └┴─┴───┘ │
│ │ ─┘│ │
│ │ ┌──────┐ └┬──────────┘
│ │ │ │
│ │ │ │
└───┘ └───┘
If Feds call you and say something bad on me, it may prove what I said are truth, they are afraid of it.
|