I am working with a ShiftBrite RGB led and I have it working nicely with an Arduino. The curse of course, is the fact that Arduinos have libraries and a lot of the "work" has been done for you. Now I want to get this guy working with a Picaxe and I am looking for a crash course on clocked serial, latching, enableing (sic) etc.
It looks like SPI communications in there. Picaxe’s shiftout (spiout) commands (or hardware equivalents) should do the job if I’m correct. Those ShiftBrites seems to work like shift registers (hence the name?). Just keep on writing bits to Data In until SB “gets full”. Most significant bit goes first (31, then 30, 29 so on). Then hit the latch pin up for a while and those bits are “applied” as new led values. If you have multiple SB’s in series like in this then write the bits of the last SB (furthest away from Picaxe) first, then second to last and so on. The first SB in line gets its value last. After writing all those value hit the latch pin.
That enable is just like enable in L293D except it has “reverse” logic. Set it low and leds are lit. Set it high and leds are off.
This is how I understood those ■■■■■■■■■■■ but I could also be totally wrong
Took me the whole day (and a good part of the night) but it was fun to make. Source is available too here. Be warned: looking at the source will not help you understand bit shifting. It will probably mess up your head for good.