Home › Forums › Mayfly Data Logger › Low power project › Reply To: Low power project
From what I read in the documentation, the following sketch should include these libraries for concurrent SDI-12 and RTC support.
#include <SDI12_PCINT3.h>
#include<Sodaq_PcInt_PCINT0.h>
void setup() {}
void loop() {}
But I get compile error:
libraries\EnviroDIY_PCInt_PCINT0\Sodaq_PcInt_PCINT0.cpp.o (symbol from plugin): In function PcInt::attachInterrupt(unsigned char, void (*)())’:
__vector_4′
(.text+0x0): multiple definition of
libraries\EnviroDIY_SDI12_PCINT3\SDI12_PCINT3.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board EnviroDIY Mayfly 1284p.
I can get a sketch to compile (and work) with old SDI12_Mod.h instead of SDI12_PCINT3.h
What is wrong?
Cal