Replace hardcoded SPI pin numbers by variable/parameter? #2612
Unanswered
martybillingsley
asked this question in
New processor/display support or capability request
Replies: 1 comment 1 reply
-
The library does not support that capability and adding it is not planned. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
At runtime, I'd like to be able to choose which SPI pins the TFT display is plugged into. Particularly TFT_CS and TFT_DC, but flexibility on some of the other pins would also be nice. Currently these are defined in User_Setup.h and seem to be immutable after compilation.
Is there a way to use a variable or parameter instead of #define for each pin so that I can select the pins at runtime, when a new instance of TFT_eSPI is created?
Beta Was this translation helpful? Give feedback.
All reactions