--_002_16ikcbcq8ln1halibutwithalispnet_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Jan-Erik Soderholm writes: >>>> One stupid moment, the datasheet calls out the order of colors as GRB, >>>> which is how I made the data structure. What I forgot was that they >>>> are talking about transmission order, and they are MSB first. So it >>>> actually needed to be BRG. >> >> is saying the same as >> >>> What could be a question about significance is the order >>> the individual bits or each color is sent. *That* could >>> be MSb or LSb (Most/Least Significant bit) first. :-) >> >> AFAICS. >> > > No, it doesn't. The order by which the *colors* are sent has > nothing to do with significans, it is just a design choice. > All three colors are equaly significant as such! > > The order how each *bit* of *each color* is sent has everything > to do with (bit) significance. Well, yes, that's true. But consider a data sheet that says (with my beautiful ascii art) " | RED | GREEN | BLUE |=20 \------------------------------------/ Bit 23 16 15 8 7 0 Data is MSB first " Not a model of clarity, maybe, but it does make sense. Conceptually the data sheet author has thought of the three colours embedded into some 24 bit number. Maybe the product can transmit other data, also in 24 (or 32?) bit packages. Then the author says "Oh, and data comes out MSB first". This isn't just hypothetical: I've used such datasheets (and such network protocol documentation). Even more confusing is when the data gets sent little-endian by byte (so you'd get blue, green, red but each byte from MSB to LSB). I recently spent some time trying to get my head around an overly clever DMA block that could switch endian-ness when so configured. Very easy to get wrong! Rupert --_002_16ikcbcq8ln1halibutwithalispnet_ Content-Type: text/plain; name="ATT00001.txt" Content-Description: ATT00001.txt Content-Disposition: attachment; filename="ATT00001.txt"; size=224; creation-date="Fri, 22 Aug 2014 20:17:11 GMT"; modification-date="Fri, 22 Aug 2014 20:17:11 GMT" Content-Transfer-Encoding: base64 LS0gDQpodHRwOi8vd3d3LnBpY2xpc3QuY29tL3RlY2hyZWYvcGljbGlzdCBQSUMvU1ggRkFRICYg bGlzdCBhcmNoaXZlDQpWaWV3L2NoYW5nZSB5b3VyIG1lbWJlcnNoaXAgb3B0aW9ucyBhdA0KaHR0 cDovL21haWxtYW4ubWl0LmVkdS9tYWlsbWFuL2xpc3RpbmZvL3BpY2xpc3QNCg== --_002_16ikcbcq8ln1halibutwithalispnet_-- .