RP2040 - GFX lib not compileable #276
-
Hello, I'm trying to compile a project I have started for the Lilygo T-Display-S3 now in combination with an RP2040 Pi Pico Board and a Waveshare 1.9 Inch ST7789 display. Which is basically identical to the Lilygo integrated display. Since nothing seems to work. I have decided to use a basic approch and tried the samples. Since I'm using LVGL on the Lilygo board my educated guess was to open the LVGLHelloWord example. But neither the Arduino MBED OS, nor the RP2040 board definitions from earlephilhower can be compiled. When using the RP2040 definitions the error message is: while with the MBED OS definition I basically get the same message for all the SPI pin declarations: what I changed when swapping to the RP2040 board was the following lines of code in the example: `#define GFX_BL DF_GFX_BL // default backlight pin, you may replace DF_GFX_BL to actual backlight pin /* More dev device declaration: https://github.com/moononournation/Arduino_GFX/wiki/Dev-Device-Declaration */ /* More data bus class: https://github.com/moononournation/Arduino_GFX/wiki/Data-Bus-Class */ /* More display class: https://github.com/moononournation/Arduino_GFX/wiki/Display-Class */ #endif /* !defined(DISPLAY_DEV_KIT) */` to: `#define GFX_BL 0 Arduino_DataBus bus = new Arduino_RPiPicoSPI(4 / DC /, 5 / CS /, 2 / SCK /, 3 / MOSI /, UINT8_MAX / MISO /, spi0 / spi */); |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This is an known issue, you need to select optimizations to -O2 to compile success. But I don't know why. |
Beta Was this translation helpful? Give feedback.
For RP2040 compile error, please change the optimization option to "-O2"