"Howto" get this to work on a standard pico RP2040 with SPI #1856
-
I've been trying to get this to work on the RP2040 and not having much luck figuring out how to get started. Generally I use CMakeLists.txt and VSCode for RP2040 stuff, but it looks as though the bundled CMakeLists.txt is specific to Arduino, unless I'm missing something. I've gathered that I need to create a User_Setups/xxx.h file, and I copied Setup60_RP2040_ILI9341.h to a test_setup.h file, changed the driver to ILI9481_DRIVER, modified the pins (I'm still using SPI0, so just changed the GPIOs to match the layout I have), and made the change in User_Setup_Select.h to comment out the top-level one and #include the new one I made. Now what ? :) There's no Makefile (fair enough, that's reasonable given the number of support options) but how do I go about creating a Makefile, or building the code ? Is there a way to build it, standalone ? Or is it time to start dragging files into a new CMakeLists.txt until it stops complaining about not being able to find something ? :) |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
The Cmakelists is for the Espresif ESP IDF. The library is Arduino IDE compatible and requires the appropriate board support package for the RP2040 such a Earle Philhower's. The simplest way forward is to use the Arduino IDE or PlatformIO IDE. |
Beta Was this translation helpful? Give feedback.
-
Great. It is best to have the 0V (GND) connection direct between the processor and display to avoid common mode noise. The rectangle appears to have missing pixels, so ground noise or too high a SCLK frequency may be the cause. SPI is quite tolerant to long wires if the 0V connection is short. |
Beta Was this translation helpful? Give feedback.
-
The ILI9481 is the slowest SPI TFT display chip I have come across. 20MHz is above the data sheet max. |
Beta Was this translation helpful? Give feedback.
-
I agree it would be really useful if we could use this library directly with the Raspberry Pi Pico SDK. What are the dependencies? I'm guessing it would need a class to wrap the SPI functions, and a mapping of basic functions (writeCommand, writeData, delay), anything else? Maybe it's not too much work to make it happen? |
Beta Was this translation helpful? Give feedback.
The Cmakelists is for the Espresif ESP IDF.
The library is Arduino IDE compatible and requires the appropriate board support package for the RP2040 such a Earle Philhower's. The simplest way forward is to use the Arduino IDE or PlatformIO IDE.