translating shifts from Java (Processing) to C++ (arduino)

Hi,

here is an overview of the pics, including the one with the theoretically correct bit shift- which gives the black areas..

The 4 bit version is simulated only. It still works with 8 bit which I shifted right and left to reduce color depth.
I will now have to combine the two bytes to one and do the decoding on the other side.

Attached you also find the data sheet for the cam. Got it from a nice guy from hacroca (who is actually on vacation).
It shows that the RRRRRGGG GGGBBBBB coding is correct.

Regards,
Robert

TCM8230MD-1.pdf (952 KB)