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:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
; 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 ; http://docs.platformio.org/page/projectconf.html [platformio] src_dir = logging_to_EnviroDIY [common] platform = atmelavr framework = arduino lib_ldf_mode = deep lib_ignore = RTCZero lib_deps = ModularSensors@>=0.6.7 https://github.com/PaulStoffregen/AltSoftSerial.git https://github.com/EnviroDIY/SoftwaterSerial_ExternalInts.git [env:mayfly] 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.