Replies: 1 comment
-
This type of pin definition is the setup file will allow the Arduino Nano Connect to work with both the Arduino Mbed board package and Earle Philhower's package.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using the RP2040 processor, the TFT_eSPI library expects pin number in the setup files to be the GPIO number, NOT the Arduino Dxx pin number. Unfortunately this causes problems with boards such as the Arduino RP2040 Nano Connect when using the Arduino RP2040 Mbed board package.
If you are using this library with an Arduino RP2040 board that is NOT a Rapsberry Pi Pico then the pin numbers must be in the following format in the setup file: px where x in the GPIO number. Example for GPIO 6.
Earle Philhower's R2040 support package is, in my opinion, supperior to the Arduino package but also has a problem with Arduino branded boards. When using that board package then use the Dx format where x is the Arduino pin number:
Here is an example Arduino board pinout. In this case Arduino D13 is GPIO 6 so the above are valid for that pin:
Beta Was this translation helpful? Give feedback.
All reactions