adafruit / Adafruit_ILI9341

Library for Adafruit ILI9341 displays

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Adafruit 4311 seems to be inverted b3r2g3 instead of r5g6b5

mutantbob opened this issue · comments

  • Arduino board: arduino Uno

  • Arduino IDE version (found in Arduino -> About Arduino menu): 1.8.7

  • List the steps to reproduce the problem below (if possible attach a sketch or
    copy the sketch code in too): Run the pictureEmbed demo on a https://www.adafruit.com/product/4311

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.

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

I eventually tracked it down to a compiler bug: rust-lang/rust#98167