RemoteWebViewClient
RemoteWebViewClient copied to clipboard
Add support for little_endian
Im using a display that needs little_endian picture elements, otherwise the colors get weirdly inverted.
For example the top bar thats suppossed to be blue turns red...
Thanks for your help.
Okay, looks doable. It’s currently hard-coded as:
jd_.setPixelType(RGB565_BIG_ENDIAN);
I’ll need to get the correct value from the display. I’ll try to take a look today or tomorrow.
@Samurai1201, please change your config to use the dev branch:
external_components:
- source: github://strange-v/RemoteWebViewClient@dev
refresh: 0s
components: [ remote_webview ]
And then add big_endian: false
remote_webview:
# your normal config here
big_endian: false
Currently, the color order is also hardcoded (COLOR_ORDER_RGB), which could also cause issues.
It worked, thanks a lot!