Problem with ESP32 deepsleep lib

I’m using VScode and plateformIO to program an ESP32 LOLIN C3

When i try usin the external wake up from a deepsleep, i get this error :the syntax identifier “esp_sleep_enable_ext0_wakeup” is undefinedC/C++(20)

So PlateformIO refuses to compile and i don’t understand why

Does it work in the Arduino IDE? I would be baffled if it would, because

says it’s unsupported on a C3 chip.

1 Like