

In general, have others seen issues in using PlatformIO with the Arduino standard libraries? Potentially related - other “standard” Arduino functions also seem to have issues when used from PlatformIO - notably, the Serial library is also non-functional on my end, but again works fine when built from the Arduino IDE. I’m not sure that this is PlatformIO’s fault, so I’d like to hear if anyone can reproduce the issue can you use the Wire libraries (from Arduino 1.6.7, the latest) with PlatformIO successfully on an 8-bit AVR (ATmega328P or equivalent)? However, the exact same code built with the Arduino IDE works just fine.

I would just use the avr-libc IO routines, but want to leverage Jeff Rowberg’s I2CDev libraries which require use of the Arduino Wire API.Įssentially, whenever I build a project using Wire with PlatformIO, the Wire libraries fail to function as expected - after some debug, I’ve found the PlatformIO-built version to hang consistently on the endTransmission() function. I’m experiencing a hard-to-trace issue with the Arduino Wire library (essentially, the I2C support functions) on the ATmega328P.
