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

PIO_SPI requirement for the RP2040? #3252

Open
orhanyor opened this issue Mar 25, 2024 · 0 comments
Open

PIO_SPI requirement for the RP2040? #3252

orhanyor opened this issue Mar 25, 2024 · 0 comments

Comments

@orhanyor
Copy link

orhanyor commented Mar 25, 2024

I noticed a new requirement in the setup file I'm not sure if its a bug or anything but let me summarize it.

  1. Setup file needs a new requirement compared to older versions.
  2. Arduino
  3. Can be observed in the version 2.5.43 while in 2.5.34 works normally
  4. Raspberry pi pico 2040 version 3.7.2
  5. Procesor RP2040
  6. TFT driver 7789
  7. Interface type SPI

So my setup file works for every prior versions except for the latest one 2.5.43
Then I added this line

#define RP2040_PIO_SPI

and it started to work. In the earlier versions PIO was not necessary to be defined.

Tests are done with Colour_Test.ino

Apart from the setup file everything is standard and nothing is modified. And it has been tested with 2 different screens to make sure its not a hardware issue.

My setup looks like this;

#define ST7789_DRIVER 

#define TFT_WIDTH  135 
#define TFT_HEIGHT 240

#define CGRAM_OFFSET   

#define TFT_CS 17  
#define TFT_DC 20 
#define TFT_RST 21
#define TFT_MOSI 19
#define TFT_SCLK 18

#define LOAD_GLCD   
#define LOAD_FONT2 
#define LOAD_FONT4  
#define LOAD_FONT6 
#define LOAD_FONT7 
#define LOAD_FONT8  
#define LOAD_GFXFF  

#define SMOOTH_FONT

#define RP2040_PIO_SPI  // <----- Adding this line makes it work for version 2.5.43

#define SPI_FREQUENCY  40000000

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