Wednesday, June 3, 2020

Fixed fatal error: Wire.h: No such file or directory - for platform IO/Arduino

When I tried exercise using Wire library, it's reported:

fatal error: Wire.h: No such file or directory


Solution, it work for me:

Open platformio.ini, add the line:

lib_deps = Wire

(or lib_deps = SPI for fatal error: SPI.h: No such file or directory)

Build again:






No comments:

Post a Comment