Use #define in pins_arduino.h to allow testing #10190
thelastoutpostworkshop
started this conversation in
Ideas
Replies: 1 comment
-
It could definitely help library makers! |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Many pins definitions are static_const in pins_arduino.h which don't allow testing in code using #ifdef, just LED_BUILTIN seams to be that way, for example :
static const uint8_t SS = 34;
static const uint8_t MOSI = 35;
static const uint8_t MISO = 37;
static const uint8_t SDO = 35;
static const uint8_t SDI = 37;
static const uint8_t SCK = 36;
Beta Was this translation helpful? Give feedback.
All reactions