You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While writing a rust driver for the pico display 2, I ran into an issue where using a minimum brightness green pixel (RGB 0,1,0) gives a grey colour rather than green. The fix for this is setting the RAMCTRL (0xB0) register to 0x00, 0xC0 to replace the default. This ensures the correct bit ordering is used for RGB565 data. Apparently whether this is needed can depend on how the ST7789 pins are connected, I've only observed the issue on the pico display 2 but it might well be the same on other ST7789 displays.
While debugging the issue in my code I checked your driver code in st7789.cpp and it doesn't seem to set RAMCTRL, so I thought this might be worth looking at in case it needs the new setting?
There's a good description of the same problem happening from arduino code here.
The text was updated successfully, but these errors were encountered:
While writing a rust driver for the pico display 2, I ran into an issue where using a minimum brightness green pixel (RGB 0,1,0) gives a grey colour rather than green. The fix for this is setting the RAMCTRL (0xB0) register to 0x00, 0xC0 to replace the default. This ensures the correct bit ordering is used for RGB565 data. Apparently whether this is needed can depend on how the ST7789 pins are connected, I've only observed the issue on the pico display 2 but it might well be the same on other ST7789 displays.
While debugging the issue in my code I checked your driver code in st7789.cpp and it doesn't seem to set RAMCTRL, so I thought this might be worth looking at in case it needs the new setting?
There's a good description of the same problem happening from arduino code here.
The text was updated successfully, but these errors were encountered: