Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of WikiWatershed, an initiative of Stroud Water Research Center designed to help people advance knowledge and stewardship of fresh water.
New to EnviroDIY? Start here

Reply To: Low power project

Home Forums Mayfly Data Logger Low power project Reply To: Low power project

#12954
Cal
Participant

    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 (*)())’:
    (.text+0x0): multiple definition of
    __vector_4′
    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