I’m sure it’s because I’m a PIO noob…
I installed an library from the library manager.
It included an example folder. (the examples were .ino files, so arduino) I’m using a esp32.
In any case when I import the .ino, add the #include <Arduino.h>, and save it as a .cpp.
The platformio,ini created automagically:
[platformio]
src_dir = .
[env]
lib_extra_dirs = ../../
lib_ldf_mode = deep+
lib_ignore = examples
build_flags =
[env:nodemcuv2]
platform = espressif8266
framework = arduino
board = nodemcuv2
[env:esp32dev]
platform = espressif32
framework = arduino
board = esp32dev
When I compile I get
“Unable to read file /home/mac/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-i2c.c”
But, that file does exist and I can open it with a text editor.
What am I doing wrong or missing?