Open ianm8 opened 2 months ago
What version of the Arduino core are you using? This could be the "normal" issue of any core file version >v2.0.14 not being compatible.
Hi
I see now this issue has been reported before. I tried adding:
#define RP2040_PIO_SPI
but that did not work.
Arduino IDE version 2.3.2.
One small correction to the user_setup.h file, I'm not using #define SPI_TOUCH_FREQUENCY 2500000
Cheers, Ian
Hi, I also have the same problem - I described it here: https://github.com/Bodmer/TFT_eSPI/discussions/3497 Now I found this issues and I try to downgrade the library and now.... RP2040 + ST7789 work! My working setup: arduino ide: 2.3.3 + tft_espi 2.5.34 (on the latest version I have black screen) Works on Setup 138 - I only change width from 240 to 135
Yes, reverting to 2.5.34 works ok. I had a look at the difference between 2.5.34 and 2.5.43 (using WinMerge) to see exactly what has changed. And not much, mostly comment updates. But there is a change to this line in TFT_eSPI_RP2040.h:
2.5.34
#define SET_BUS_READ_MODE // spi_set_format(SPI_X, 8, (spi_cpol_t)0, (spi_cpha_t)0, SPI_MSB_FIRST)
2.5.43
#define SET_BUS_READ_MODE spi_set_format(SPI_X, 8, (spi_cpol_t)0, (spi_cpha_t)0, SPI_MSB_FIRST)
The spi_set_format function has been reinstated. So I updated to 2.5.42 again and commented out that function and now it's working.
Not sure why this is an issue really, it looks like it should be ok using that function. I don't know enough to investigate further. Hoping others can figure it out from here. :)
Cheers, Ian
Hi
I have previously used this library (version 2.5.34) with an ST7789 and an Pi Pico (RP2040) without issue. After updating to version 2.5.43 the display no longer works. That is, nothing is displayed. Reverting to 2.5.34 and works again.
Here is the user setup file:
Here is the test program: