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 -
sleep(0) in V2.1 doesn't sleep indefinitely anymore. Used to powerdown and sleep in V1.5
Bug Reports • 22 Nov 2019, 00:35 • GaryStofer 15 Apr 2023, 05:50 -
Missing "__libc_init_array();" wenn using samd without USB
Bug Reports • 6 Jul 2022, 08:36 • ltigges 7 Jul 2022, 22:43 -
Making WiFiManager compatible with MySensors 2.3.2
Bug Reports • 12 Feb 2020, 21:43 • pihome 1 Jun 2022, 16:02 -
Sensor presentation failure
Bug Reports • 31 Jul 2016, 19:23 • Sergio Rius 3 Mar 2021, 18:48