MY_SOFTSPI in MySensors 2.0 clashes with built-in Arduino SD-Card Library
-
Here is how to reproduce the problem:
Use:
- Latest (as of this write-up; SD Built-In by Arduino, Sparkfun 1.08) standard SD Card library from Arduino.
- Latest MySensors libraries (2.0.0).
Try to compile the following sketch:
#include <SPI.h>
#include <SD.h>
#define MY_RADIO_NRF24
#define MY_SOFTSPI
#include <MySensors.h>The following error is reported:
DigitalPin.h:41:8: error: redefinition of 'struct pin_map_t'Maybe something should be conditionally included inside MySensors.h or thereafter within.
Otherwise, most likely it will clash with other libraries that include the same thing(s).Cheers,
Jordan
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login