Unfortunately not ... getPixel tries to achieve the color at the given coordinates x, y, while getBgColor()has no coordinates as parameters at all. The getPixelreturn value is always [255,255,255] not being aware of the selected color format.
I've looked through a dozen sources of different ILI9371drivers in the net - and compared to the implementation the code seems pretty correct. So it's not easy to analyze where the unuseable return values are from. I guess this might be a slightly wrong setting of the display mode, so it returns only the whitecolor.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Unfortunately not ...
getPixel
tries to achieve the color at the given coordinatesx, y
, whilegetBgColor()
has no coordinates as parameters at all. ThegetPixel
return value is always[255,255,255]
not being aware of the selected color format.I've looked through a dozen sources of different
ILI9371
drivers in the net - and compared to the implementation the code seems pretty correct. So it's not easy to analyze where the unuseable return values are from. I guess this might be a slightly wrong setting of the display mode, so it returns only thewhite
color.