Hi
I'm conrolling 16 leds with two 74595 shift registers and arduino nano. For now I have program that put's random leds ON at random time interval and I'm trying to make it change the brightness of the leds... by random of course ![]()
So... lets assume that I have random byte which is b = B10011011 and I have values for brightness from 0 to 7. How do I read which bit is on and choose randomly the brightness value for it?
I mean something like this
10011011 Byte to read
10000000 Brightness value 7
00001001 Brightness value 4
00010000 Brightness value 2
00001000 Brightness value 0
Every brightness byte is shifted different time and then looped.
I have absolutely no idea where to start, so help me arduino forum. You're my only hope.
Long time no english usage for me, so I hope you understand something from this mess ![]()