RGB with BS2?
SweLogan
Posts: 11
Hi i want a RGB diode to Loop 256 colors with a BS2.
I cant get it to work good. Geve me some code
I cant get it to work good. Geve me some code
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Actually, the limitation that Chris mentions is true of all PBASIC Stamps, not just the BS-2, as might have been implied. The PWM on every Stamp platform is generated by software, so although you can do PWM with all 16 pin ports, you can only use one-at-a-time. The Stamp is a single tasking processor.
In order to mix colors on your RGB LED, you will need an off-chip PWM processor, like the Parallax PWM Pal, which fits neatly underneath the Stamp:
http://www.parallax.com/detail.asp?product_id=28020
The nice thing about the PWM Pal is that it takes up no space at all, due to the mentioned mounting method, and it gives you a full FOUR channels of hardware PWM! Just remember to save Pin Port 0 on the Stamp for communicating between the Stamp and the PWM Pal. That is a requirement of the PWM pal, and can not be changed.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->
Post Edited (Bruce Bates) : 5/29/2006 6:08:04 AM GMT