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
1 out of 1
Suggested Topics
-
Code for beta-testing?
Controllers • 24 Mar 2014, 20:48 • andriej 9 Aug 2014, 10:44 -
some differences between serial- and tcp-gateways.
Bug Reports • 15 Mar 2023, 09:26 • Branther 30 Mar 2023, 15:40 -
Missing "__libc_init_array();" wenn using samd without USB
Bug Reports • 6 Jul 2022, 08:36 • ltigges 7 Jul 2022, 22:43 -
ACK -aka ECHO beeing missed by Serial Gateway with RF24 radios. V2.3.2
Bug Reports • 15 Apr 2023, 06:27 • GaryStofer 21 Apr 2023, 17:34 -
Sensor presentation failure
Bug Reports • 31 Jul 2016, 19:23 • Sergio Rius 3 Mar 2021, 18:48 -
NRF51-52 PA not support ???
Bug Reports • 23 Feb 2019, 16:40 • berkseo 8 Jul 2021, 11:42