Before having started doing anything to a new project I get this error. I get squiggly lines under #include <Adafruit_SSD1306>
main
#include <Arduino.h>
#include <Adafruit_SSD1306>
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
platformio.ini
[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
lib_deps =
adafruit/Adafruit SSD1306
adafruit/Adafruit GFX Library@^1.10.13
I looked in the c_cpp_properties.json file of another project and discovered that two lines were missing from this failing project. I added them but the error didn’t go away. The lines point to libraries in .pio.libdeps.
"configurations": [
{
"name": "PlatformIO",
"includePath": [
"e:/Documents/PlatformIO/Projects/Esp32_OLED_temp/include",
"e:/Documents/PlatformIO/Projects/Esp32_OLED_temp/src",
"e:/Documents/PlatformIO/Projects/Esp32_OLED_temp/.pio/libdeps/esp32dev/Adafruit SSD1306",
"e:/Documents/PlatformIO/Projects/Esp32_OLED_temp/.pio/libdeps/esp32dev/Adafruit GFX Library",
"C:/Users/hans/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/config",
"C:/Users/hans/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/app_trace",
"C:/Users/hans/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/app_update",