Im developing a kind of LED screen matrix which uses 16 bit shift registers... I don't have any experience with HW related programming as of 3 days ago :)
So... If I feed 16 bits like this: B00000000 B00000001 into the shift register, it lights the first LED green(1 is for green, 2 is for red, 3 is for blue)
SO.. In order to light the first 2 LEDs green I would need to feed in B00000000 B00001001
As far as I understand this is some kind of logical bitshift to the left, but I cannot understand WHAT it is...
B00000001 stands for 1 but B00001001 stands for 9 or 1 + 8
B01001001 stands for 73 which lights the first 3 leds green...
so there are portions of 3 1nes or zeros chained together and I cannot seem to find the logic how to shift :(
In other words - what is the shifting expression to get B0001001 out of B00000001