Old Skool Marquees
I’ve been thinking about implementing some traditional style “marquee” lighting and i’m wondering how best to store the bit mapping.
I want to be able to call the bit mapping (which led is on, when) and apply the colour over the top.
So a simple chase:
X 0 0 0
0 X 0 0
0 0 X 0
0 0 0 X
repeat
could be shown in any hue.
i’ve been stuffing bits like this:
sequence[32] = { {B000010000,B00000100,B000000010,B00000001,B000010000,B00000100,B000000010,B00000001}, // light chase
{B00000001,B00000010,B00000100,B00001000,B00000001,B00000010,B00000100,B00001000}, // light chase back
// etc etc…
}
but it gets ugly real quick.
I’ve tried this a few ways now, but none of them feel elegant (lots of loops, or that mess above etc), so i thought i’d throw it out here.
I’ve attached an image showing the sorts of bitmaps i want to use.
Any ideas?
note: i used to implement this on 4 channel “sequencers” i built back in the day, that stored the sequence in an EPROM, and it was a simple matter of incrementing the address on each clock, and 4 (or more) data lines would carry the pattern, hence my interest in trying this in software.


