I see, you’re using https://github.com/espressif/esp-iot-solution/blob/master/examples/oled_screen_module/main/main.cpp. This code isn’t targeted at Arduino though (no #include <Arduino.h>
).
Are you really sure you need esp-iot-solution
and thus ESP-IDF instead of Arduino? The example firmware above expects a APDS-9960 gesture sensor (https://www.sparkfun.com/products/12787), an HTS221 humidity and tmperature sensor, a capacitive touch screen and a SSD1306 I2C OLED display. Is that your hardware setup?
Of course you can get the firmware to compile after adding each component (link was above) (not via lib/
for ESP-IDF), but I’m just checking with you whether that firmware and framework makes any sense at all for what you want to do.