Home › Forums › Monitor My Watershed › Problems compiling Logging_to_EnviroDIY example in ModularSensors › Reply To: Problems compiling Logging_to_EnviroDIY example in ModularSensors
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:
; PlatformIO Project Configuration File
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
; Please visit documentation for the other options and examples
src_dir = logging_to_EnviroDIY
platform = atmelavr
framework = arduino
lib_ldf_mode = deep
lib_ignore = RTCZero
board = mayfly
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.