Awesome, yea, that's what I was trying to get to :)
I've got this code now which should do the un-interleaving (per row)
t = (x ^ (x >> 1)) & 0x2222; x = x ^ t ^ (t << 1);
t = (x ^ (x >> 2)) & 0x0C0C; x = x ^ t ^ (t << 2);
t = (x ^ (x >> 4)) & 0x00F0; x = x ^ t ^ (t << 4);
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Awesome, yea, that's what I was trying to get to :)
I've got this code now which should do the un-interleaving (per row)
Matt