change pin 12 assignment
-
in RF24_config.h change
//#define SOFTSPI // Requires library from https://github.com/greiman/DigitalIOto
#define SOFTSPI // Requires library from https://github.com/greiman/DigitalIOAnd put DgitalIO into Documents/Arduino (download from the link provided)
-
DigitialIO is included with the MySensors libraries and should not need to be downloaded separately. @hek and @Anticimex, it looks like there are two places to uncomment the #define SOFTSPI line: RF24_config.h and MyConfig.h. Can you confirm where this should be done or does it not matter? @s3bb0 did you delete all of the 1.4 files before copying in the 1.5 ones and then restart the IDE?
Cheers
Al -
DigitialIO is included with the MySensors libraries and should not need to be downloaded separately. @hek and @Anticimex, it looks like there are two places to uncomment the #define SOFTSPI line: RF24_config.h and MyConfig.h. Can you confirm where this should be done or does it not matter? @s3bb0 did you delete all of the 1.4 files before copying in the 1.5 ones and then restart the IDE?
Cheers
Al -
i tried to change it in MyConfig.h and installed 1.5 and even 1.4 again but still errors....
var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/utility/PinIO.cpp.o: In function
PinIO::begin(unsigned char)': /Users/..../Documents/Arduino/libraries/MySensors/utility/PinIO.cpp:43: multiple definition ofPinIO::begin(unsigned char)'
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/PinIO.cpp.o:/Users/..../Documents/Arduino/libraries/MySensors/PinIO.cpp:43: first defined here
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/utility/PinIO.cpp.o: In functionPinIO::begin(unsigned char)': /Users/..../Documents/Arduino/libraries/MySensors/utility/PinIO.cpp:43: multiple definition ofPinIO::PinIO(unsigned char)'
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/PinIO.cpp.o:/Users/..../Documents/Arduino/libraries/MySensors/PinIO.cpp:43: first defined here
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/utility/PinIO.cpp.o: In functionPinIO::begin(unsigned char)': /Users/..../Documents/Arduino/libraries/MySensors/utility/PinIO.cpp:43: multiple definition ofPinIO::PinIO(unsigned char)'
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/PinIO.cpp.o:/Users/..../Documents/Arduino/libraries/MySensors/PinIO.cpp:43: first defined here
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/utility/PinIO.cpp.o: In functionPinIO::begin(unsigned char)': /Users/..../Documents/Arduino/libraries/MySensors/utility/PinIO.cpp:43: multiple definition ofPinIO::config(bool, bool)'
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/PinIO.cpp.o:/Users/..../Documents/Arduino/libraries/MySensors/PinIO.cpp:43: first defined here
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/utility/SoftI2cMaster.cpp.o: In functionSoftI2cMaster::read(unsigned char)': /Users/..../Documents/Arduino/libraries/MySensors/utility/SoftI2cMaster.cpp:160: multiple definition ofSoftI2cMaster::read(unsigned char)'
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/SoftI2cMaster.cpp.o:/Users/..../Documents/Arduino/libraries/MySensors/SoftI2cMaster.cpp:160: first defined here
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/utility/SoftI2cMaster.cpp.o: In functionSoftI2cMaster::read(unsigned char)': /Users/..../Documents/Arduino/libraries/MySensors/utility/SoftI2cMaster.cpp:160: multiple definition ofSoftI2cMaster::start()'
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/SoftI2cMaster.cpp.o:/Users/..../Documents/Arduino/libraries/MySensors/SoftI2cMaster.h:136: first defined here
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/utility/SoftI2cMaster.cpp.o: In functionSoftI2cMaster::read(unsigned char)': /Users/..../Documents/Arduino/libraries/MySensors/utility/SoftI2cMaster.cpp:160: multiple definition ofSoftI2cMaster::stop()'
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/SoftI2cMaster.cpp.o:/Users/..../Documents/Arduino/libraries/MySensors/SoftI2cMaster.h:136: first defined here
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/utility/SoftI2cMaster.cpp.o: In functionSoftI2cMaster::read(unsigned char)': /Users/..../Documents/Arduino/libraries/MySensors/utility/SoftI2cMaster.cpp:160: multiple definition ofSoftI2cMaster::write(unsigned char)'
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/SoftI2cMaster.cpp.o:/Users/..../Documents/Arduino/libraries/MySensors/SoftI2cMaster.h:136: first defined here
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/utility/SoftI2cMaster.cpp.o: In functionSoftI2cMaster::read(unsigned char)': /Users/..../Documents/Arduino/libraries/MySensors/utility/SoftI2cMaster.cpp:160: multiple definition ofI2cMasterBase::transferContinue(void*, unsigned int, unsigned char)'
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/SoftI2cMaster.cpp.o:/Users/..../Documents/Arduino/libraries/MySensors/SoftI2cMaster.h:136: first defined here
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/utility/SoftI2cMaster.cpp.o: In functionSoftI2cMaster::read(unsigned char)': /Users/..../Documents/Arduino/libraries/MySensors/utility/SoftI2cMaster.cpp:160: multiple definition ofI2cMasterBase::transfer(unsigned char, void*, unsigned int, unsigned char)'
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/SoftI2cMaster.cpp.o:/Users/..../Documents/Arduino/libraries/MySensors/SoftI2cMaster.h:136: first defined here
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/utility/SoftI2cMaster.cpp.o: In functionSoftI2cMaster::read(unsigned char)': /Users/..../Documents/Arduino/libraries/MySensors/utility/SoftI2cMaster.cpp:160: multiple definition ofSoftI2cMaster::begin(unsigned char, unsigned char)'
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/SoftI2cMaster.cpp.o:/Users/..../Documents/Arduino/libraries/MySensors/SoftI2cMaster.h:136: first defined here
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/utility/SoftI2cMaster.cpp.o: In functionSoftI2cMaster::read(unsigned char)': /Users/..../Documents/Arduino/libraries/MySensors/utility/SoftI2cMaster.cpp:160: multiple definition ofSoftI2cMaster::SoftI2cMaster(unsigned char, unsigned char)'
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/SoftI2cMaster.cpp.o:/Users/..../Documents/Arduino/libraries/MySensors/SoftI2cMaster.h:136: first defined here
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/utility/SoftI2cMaster.cpp.o: In functionSoftI2cMaster::read(unsigned char)': /Users/..../Documents/Arduino/libraries/MySensors/utility/SoftI2cMaster.cpp:160: multiple definition ofSoftI2cMaster::SoftI2cMaster(unsigned char, unsigned char)'
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/SoftI2cMaster.cpp.o:/Users/..../Documents/Arduino/libraries/MySensors/SoftI2cMaster.h:136: first defined here
collect2: error: ld returned 1 exit status
Fehler beim Kompilieren. -
i tried to change it in MyConfig.h and installed 1.5 and even 1.4 again but still errors....
var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/utility/PinIO.cpp.o: In function
PinIO::begin(unsigned char)': /Users/..../Documents/Arduino/libraries/MySensors/utility/PinIO.cpp:43: multiple definition ofPinIO::begin(unsigned char)'
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/PinIO.cpp.o:/Users/..../Documents/Arduino/libraries/MySensors/PinIO.cpp:43: first defined here
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/utility/PinIO.cpp.o: In functionPinIO::begin(unsigned char)': /Users/..../Documents/Arduino/libraries/MySensors/utility/PinIO.cpp:43: multiple definition ofPinIO::PinIO(unsigned char)'
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/PinIO.cpp.o:/Users/..../Documents/Arduino/libraries/MySensors/PinIO.cpp:43: first defined here
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/utility/PinIO.cpp.o: In functionPinIO::begin(unsigned char)': /Users/..../Documents/Arduino/libraries/MySensors/utility/PinIO.cpp:43: multiple definition ofPinIO::PinIO(unsigned char)'
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/PinIO.cpp.o:/Users/..../Documents/Arduino/libraries/MySensors/PinIO.cpp:43: first defined here
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/utility/PinIO.cpp.o: In functionPinIO::begin(unsigned char)': /Users/..../Documents/Arduino/libraries/MySensors/utility/PinIO.cpp:43: multiple definition ofPinIO::config(bool, bool)'
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/PinIO.cpp.o:/Users/..../Documents/Arduino/libraries/MySensors/PinIO.cpp:43: first defined here
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/utility/SoftI2cMaster.cpp.o: In functionSoftI2cMaster::read(unsigned char)': /Users/..../Documents/Arduino/libraries/MySensors/utility/SoftI2cMaster.cpp:160: multiple definition ofSoftI2cMaster::read(unsigned char)'
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/SoftI2cMaster.cpp.o:/Users/..../Documents/Arduino/libraries/MySensors/SoftI2cMaster.cpp:160: first defined here
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/utility/SoftI2cMaster.cpp.o: In functionSoftI2cMaster::read(unsigned char)': /Users/..../Documents/Arduino/libraries/MySensors/utility/SoftI2cMaster.cpp:160: multiple definition ofSoftI2cMaster::start()'
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/SoftI2cMaster.cpp.o:/Users/..../Documents/Arduino/libraries/MySensors/SoftI2cMaster.h:136: first defined here
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/utility/SoftI2cMaster.cpp.o: In functionSoftI2cMaster::read(unsigned char)': /Users/..../Documents/Arduino/libraries/MySensors/utility/SoftI2cMaster.cpp:160: multiple definition ofSoftI2cMaster::stop()'
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/SoftI2cMaster.cpp.o:/Users/..../Documents/Arduino/libraries/MySensors/SoftI2cMaster.h:136: first defined here
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/utility/SoftI2cMaster.cpp.o: In functionSoftI2cMaster::read(unsigned char)': /Users/..../Documents/Arduino/libraries/MySensors/utility/SoftI2cMaster.cpp:160: multiple definition ofSoftI2cMaster::write(unsigned char)'
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/SoftI2cMaster.cpp.o:/Users/..../Documents/Arduino/libraries/MySensors/SoftI2cMaster.h:136: first defined here
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/utility/SoftI2cMaster.cpp.o: In functionSoftI2cMaster::read(unsigned char)': /Users/..../Documents/Arduino/libraries/MySensors/utility/SoftI2cMaster.cpp:160: multiple definition ofI2cMasterBase::transferContinue(void*, unsigned int, unsigned char)'
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/SoftI2cMaster.cpp.o:/Users/..../Documents/Arduino/libraries/MySensors/SoftI2cMaster.h:136: first defined here
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/utility/SoftI2cMaster.cpp.o: In functionSoftI2cMaster::read(unsigned char)': /Users/..../Documents/Arduino/libraries/MySensors/utility/SoftI2cMaster.cpp:160: multiple definition ofI2cMasterBase::transfer(unsigned char, void*, unsigned int, unsigned char)'
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/SoftI2cMaster.cpp.o:/Users/..../Documents/Arduino/libraries/MySensors/SoftI2cMaster.h:136: first defined here
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/utility/SoftI2cMaster.cpp.o: In functionSoftI2cMaster::read(unsigned char)': /Users/..../Documents/Arduino/libraries/MySensors/utility/SoftI2cMaster.cpp:160: multiple definition ofSoftI2cMaster::begin(unsigned char, unsigned char)'
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/SoftI2cMaster.cpp.o:/Users/..../Documents/Arduino/libraries/MySensors/SoftI2cMaster.h:136: first defined here
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/utility/SoftI2cMaster.cpp.o: In functionSoftI2cMaster::read(unsigned char)': /Users/..../Documents/Arduino/libraries/MySensors/utility/SoftI2cMaster.cpp:160: multiple definition ofSoftI2cMaster::SoftI2cMaster(unsigned char, unsigned char)'
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/SoftI2cMaster.cpp.o:/Users/..../Documents/Arduino/libraries/MySensors/SoftI2cMaster.h:136: first defined here
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/utility/SoftI2cMaster.cpp.o: In functionSoftI2cMaster::read(unsigned char)': /Users/..../Documents/Arduino/libraries/MySensors/utility/SoftI2cMaster.cpp:160: multiple definition ofSoftI2cMaster::SoftI2cMaster(unsigned char, unsigned char)'
/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp/MySensors/SoftI2cMaster.cpp.o:/Users/..../Documents/Arduino/libraries/MySensors/SoftI2cMaster.h:136: first defined here
collect2: error: ld returned 1 exit status
Fehler beim Kompilieren. -
You probably need to purge your temp folder as well. The Arduino IDE is stupid and might believe it can re-use old build artifacts. (/var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build4313290786347724905.tmp)
-
thank you all, but its still the problem.
i deleted everything, even the temporary files.
i installed everything (arduinoIDE + mysensors 1.5). everythin works until i comment the softSPI in.
then it reports: the DigitalIO.h error-.
Arduino: 1.6.5 (Mac OS X), Platine: "Arduino Pro or Pro Mini, ATmega328 (3.3V, 8 MHz)"Verwende die Bibliothek SPI im Ordner: /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/SPI
Verwende die Bibliothek MySensors im Ordner: /Users/-------/ArduinoNEW/libraries/MySensors (legacy)/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -Wextra -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10605 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/eightanaloginputs -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/SPI -I/Users/----/ArduinoNEW/libraries/MySensors /var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build8452403048590699508.tmp/LightSensor.cpp -o /var/folders/ts/_xf3xpf1769419gyjrkmv7yc0000gn/T/build8452403048590699508.tmp/LightSensor.cpp.o
In file included from /Users/-----/ArduinoNEW/libraries/MySensors/MyTransportNRF24.h:26:0,
from /Users/----/ArduinoNEW/libraries/MySensors/MySensor.h:28,
from LightSensor.ino:30:
/Users/----/ArduinoNEW/libraries/MySensors/utility/RF24.h:20:23: fatal error: DigitalIO.h: No such file or directory
#include <DigitalIO.h>
^
compilation terminated.
Fehler beim Kompilieren.then i checked /Users/----/ArduinoNEW/libraries/ AND
/Users/----/ArduinoNEW/libraries/DigitalIO/
for the DigitalIO.h ==> IN BOTH EXISTS DigitalIO.h because i copied it for testing.that is so strange ... :(