I'm making a Nixie clock and temp/date display. As i don't have room for a leading minus sign for the temp display, i was thinking of having a tri-colour led that went from red (30c) to blue (0c) depending on outside temp.
I guess i can achieve this using 3 (RGB) pwm pins but it feels quite resource intensive and can this be done on zx40 which needs 2 s/w uarts already ?
Is there a better way ?
Driving a tri colour LED
Re: Driving a tri colour LED
Which tri-color LED are you thinking of using? If you choose a common anode type you could have several different 3-resistor combinations that could each be connected to an output pin which, when set low, would create a pre-determined color.FFMan wrote:Is there a better way ?
It may be tricky to select the resistor values due to the effective network resistance - diodes in series with the resistors would isolate them.
- Attachments
-
- RGB_LED.jpg (40.16 KiB) Viewed 2918 times
- Don Kinzer