-
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. -
-
Ok, it's an old thread, but the question is still remaining ...
@DaveNI nice work with your faster display code!
But there is one problem: when writing text, the background is always white, because of the fact that the call of "getPixel" always returns "(255,255,255)". Is there any solution in sight?
Well, the
ILITEK ILI9341
specifications tells us another story - so you think that there are displays in the wild which do not support all the abilities the driver chip provides? This is bad new ... But I do not understand why there are modules available which provides agetPixel(x,y)
function - so the function will not work at all, even in the module atatched here by @DaveNI - this is puzzling. But ok, so I will switch to "plan B" ... ;-)BTW: did I mention that I love the Espruino? Great piece of work ... tiny, easy to handle, extremely flexible ... it's my
IoT
favorite ...P.S.: After reading again also in the
teensy
forum, Paul Stoffregen is claiming that thereadPixel
function will work correctly ... I'll give it a try with myteensy 3.1
...