Skip to content

Lolin D32 Pro variant has conflicting pin names in pins_arduino.h #1800

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

Closed
tobozo opened this issue Aug 26, 2018 · 0 comments
Closed

Lolin D32 Pro variant has conflicting pin names in pins_arduino.h #1800

tobozo opened this issue Aug 26, 2018 · 0 comments

Comments

@tobozo
Copy link
Contributor

tobozo commented Aug 26, 2018

Board: Lolin D32 Pro
IDE name: Arduino 1.8.5

I can't compile any sketch using TFT_eSPI library when LOLIN D32 Pro is selected as a board.
Conflicting pin names produce unrecoverable errors at compilation.

This issue describes very well the problem, and while the suggested solution works, it isn't appropriate for extended uses (e.g. enable/disable psram)

Note that this situation also conflicts with a few other libraries (most are Adafruit).

Editing /variants/d32_pro/pins_arduino.h file to use defines solved this for me:

#define TF_CS 4    // TF (Micro SD Card) CS pin
#define TS_CS 12   // Touch Screen CS pin
#define TFT_CS 14  // TFT CS pin
#define TFT_LED 32 // TFT backlight control pin
#define TFT_RST 33 // TFT reset pin
#define TFT_DC 27  // TFT DC pin

Is that worth a pull request?

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

No branches or pull requests

1 participant