adafruit / Adafruit_ILI9341

Library for Adafruit ILI9341 displays
415 stars 283 forks source link

The Adafruit 4311 seems to be inverted b3r2g3 instead of r5g6b5 #80

Closed mutantbob closed 2 years ago

mutantbob commented 2 years ago

Instead of the flag of Wales, what you will get is a per fess black and blue, a dragon passant to sinister green.

I have been experimenting, and it seems the u16 pixels are being interpreted as b3r2g3 inverted instead of r5g6b5. And by inverted I mean 0xff is black and 0x00 is white.

I am unable to find anything in the ili9341 data sheet to help me enable 16-bit color.

ladyada commented 2 years ago

can you post a photo showing what you're seeing?

mutantbob commented 2 years ago

I eventually tracked it down to a compiler bug: https://github.com/rust-lang/rust/issues/98167