Here version with HPWM controlled color setting mode![]()
Here version with HPWM controlled color setting mode![]()
And by adding properly synced multiplexing, even nicer effects can be obtained. Too bad they do not make RGB 7 segment displays in manageable size or price....
As you can see, greens are less bright than reds, this is due fact, that there are two leds in series for each color and each segment, so driving them from 5V makes green look less brighter. To achieve same level of brightness of green as red has, it needs about 5.8V, which is way too high and most likely will burn my MCU, so I'm avoiding that at all costs.
I've added external drivers to circuitry, so voltage now not an issue, so brightness also can be increased![]()
Bringing up an old thread...
I have CD4514 connected with it's ABCD inputs to upper 4 bits of PORT.D (PORTD4-7)
I have variable that changes values between 0 and 16. Name is A
How Can I directly write this variable to these upper bits?
PORTD.0[4+A]=A seems not to be working...
Try
PORTD.4=A.0
PORTD.5=A.1
PORTD.6=A.2
PORTD.7=A.3
Another way
PORTD=A>>4
Thanks, that works!
Bookmarks