RemoteWebViewClient icon indicating copy to clipboard operation
RemoteWebViewClient copied to clipboard

Add support for little_endian

Open Samurai1201 opened this issue 1 year ago • 3 comments

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.

Samurai1201 avatar Oct 18 '25 07:10 Samurai1201

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.

strange-v avatar Oct 18 '25 08:10 strange-v

@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.

strange-v avatar Oct 18 '25 14:10 strange-v

It worked, thanks a lot!

Samurai1201 avatar Oct 18 '25 15:10 Samurai1201