Closed vishnumaiea closed 2 years ago
I just replaced the release version of TFT_eSPI with the master branch and I can confirm that the issue is unresolved in the latest version.
The LCD now works. There was a breakage on the CS line of the LCD.
Yes, you have to define those pins in the setup, they are needed for all processors except the ESP8266 which only has one SPI port.
Here are the pins defined in an example setup file for the RP2040 with an ILI9341 display.
The library by default uses the SPI 0 port. Since you are using the SPI 1 port so this needs to be defined in the setup file as noted here.
Ah, I see you have fixed while I was typing!
Maybe you can include a short note on the need for extra pin definition in the user setup file, just like you already have.
What I am using:
Board: Wiznet WizFi360-EVB-Pico Processor: RP2040 LCD: 1.44", 128x128, ST7735 Interface:
SPI1
Platform: Arduino (Earle's RP2040 Arduino package) TFTeSPI Library version: 2.4.72What I am doing:
I am trying to use an ST7735-based 128x128 1.44" LCD with RP2040 by wiring it to the hardware
SPI1
port. The board is a WizFi360-EVB-Pico from WizNet. The board is identical to the official Raspberry Pi Pico board with the difference being the addition of the WizFi360 module connected toSerial2
port. So nothing on the way of TFTeSPI or LCD.Below is the TFTeSPI configuration I am using. Only active configuration lines are included. Everything else is commented out.
The issue:
So the issue is when I compile I get a missing definition error for two pins. Below is a section of the build log that lists the errors.
So the definitions for
TFT_SCLK
andTFT_MOSI
are missing. I examined the associated header files and c files, and couldn't find their definitions anywhere.Workaround I am using:
To solve the problem, I added the missing definitions in the User Setup file as you can see above, and the code compiled just fine.
PS: Even with that workaround I am not able to get anything displayed on the display. I was able to use the same configuration and LCD to get it working with an ESP32 board before (with ESP32 SPI). So the LCD configuration is correct. But I will post this issue separately once I am sure everything on my side are correctly setup, such as wiring.