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: Problems compiling Logging_to_EnviroDIY example in ModularSensors

Home Forums Monitor My Watershed Problems compiling Logging_to_EnviroDIY example in ModularSensors Reply To: Problems compiling Logging_to_EnviroDIY example in ModularSensors

#6279
Sara Damiano
Moderator

    Great that you’re using PlatformIO; it really is a big improvement over the Arduino IDE!

    Do you mind sharing your platformio.ini file? It should look very much like this:

    The “lib_ignore = RTCZero” is needed for AVR boards (like the EnviroDIY Mayfly). That library is for SAMD boards (like a Sodaq Autonomo or Arduino Zero) that have a clock in the processor. If you don’t tell PlatformIO to ignore the library it will try to build it and you’ll end up with errors like you’re seeing. Also the “lib_ldf_mode = deep” might be needed because sometimes it misses dependencies otherwise.