Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSD1351 128x128 Color Issue #340

Closed
yuniq-neko opened this issue Apr 18, 2022 · 3 comments
Closed

SSD1351 128x128 Color Issue #340

yuniq-neko opened this issue Apr 18, 2022 · 3 comments

Comments

@yuniq-neko
Copy link

Type of Raspberry Pi

Raspberry Pi 4B (4GB)

Linux Kernel version

Linux RPi-Dash-Cluster 5.15.32-v8+ #1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022 aarch64 GNU/Linux

Expected behaviour

RGB = RGB

Actual behaviour

RGB ≠ RGB

Red and Blue seem to have swapped, resulting in the palette becoming "BGR".

@yuniq-neko
Copy link
Author

yuniq-neko commented Apr 18, 2022

Photo:
SwappedRedAndBlue
Ignore the black line; its just from my camera catching the display refresh

@rm-hull
Copy link
Owner

rm-hull commented Apr 18, 2022

If you look here (https://luma-oled.readthedocs.io/en/latest/api-documentation.html#luma.oled.device.ssd1351) at the API docs, there is a bgr= flag you can set to true. This should resolve the issue.

@yuniq-neko
Copy link
Author

Apologies on the delay on responding to this, adding --bgr does indeed fix the issue. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants