-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
ST7789 blank display after update to 2.5.43 #3402
Comments
Thanks for reporting his, I have not used the library for some time due to other time pressures but will investigate as the RP2040 is my favorite processor! |
if you add this line to your user setup it should work. #define RP2040_PIO_SPI |
When I add #define RP2040_PIO_SPI it does not play nicely with the TouchScreen:
|
mine works
But my issue is the color is wrong, seems |
Thanks for everyone's reply! #define RP2040_PIO_SPI sounds like a solution to the issue. thanks. Anyway, thanks a lot. I will leave this issue open for a while but, if there are no more posts for a while I will close as solved. |
I wish I'd found this issue before going through all the trouble of git bisecting the pico-sdk. Simply adding #define RP2040_PIO_SPI like described above fixed the issues with my LilyGo T-Display 2040 on arduino-pico later than 3.2.2. I don't know enough about SPI to tell what the best fix is, but the breaking change in pico-sdk was here:
It seems that disabling and re-enabling SPI does not work well with the TFT_eSPI driver, at least on this board. The only instance that really affects the sketches I tested was in src/rp2_common/hardware_spi/include/hardware/spi.h static inline void spi_set_format(). Just commenting lines 185, 186 and 197 got the TFT working again. And because pico-sdk is still at 1.5.1 on the latest tag of arduino-pico, this fix works for all versions of arduino-pico after 3.2.2. |
I can't make mine work but I'm using an ESP32. It's the same ST7789 240x320 but without touchscreen. I have a pico but i need to solder the pins so I haven't been able to try it. |
I have an ST7789 module that works fine until version 2.5.34, but after 2.5.43, the display is blank.
Hardware configuration including pin configuration is the same, I modified User_Setup_select.h and Setup18_ST7789 after installing the library in either case.
I'm Using Raspberry Pi Pico with Arduino IDE. Updated library on IDE.
I reverted to 2.5.34 and the display is now working.
Board package version 3.9.3 of Rasberry Pi Pico/RP2040.
Board: Rasberry Pi Pico
SPI interface.
I modified the setup file as below on both versions.
I'm just going to use the old version, but I'm just informing this issue.
The text was updated successfully, but these errors were encountered: