I'm trying to use the Waveshare LCD 1.28 module found at https://www.waveshare.com/wiki/RP2040-LCD-1.28 which based upon their demo python code, the module should support RGB565 for color definitions, however this doesn't appear to be true.
There are a number of color constants defined in the code:
self.red = 0x07E0
self.green = 0x001f
self.blue = 0xf800
But these are not correct for RGB565, instead these should be:
self.red = 0xf800
self.green = 0x07E0
self.blue = 0x001f
The problem is, the incorrect values render correctly on the screen, but this means I can't easily calculate other colors.
Does anyone know how to get this display to use correct RGB565 values? Or some way of correctly calculating colors based on their RGB value to whatever format the screen is using?
I initially thought maybe they are all just shifted and the values are actually BRG, and this works to some degree, but there are some color mixes that don't come out right so it doesn't look as simple as that.