Platform-espressif32 v5.1.0 and the adc_oneshot driver

Newbie here so sorry if this should be obvious.

I’m trying to put together a project from bits and bobs of the ESP-IDF examples using PlatformIO. I’ve selected the Espressif IoT framework (rather than Arduino). Most stuff works but the adc_oneshot driver seems to be missing.

Do I need to enable it somewhere? Or has PlatformIO not caught up with this addition yet? Looks like the driver was only added three weeks ago so I’m guessing it may be the latter.

Is there some way to use a manual ESP-IDF installation with my PlatformIO setup?

What version of ESP-IDF are you looking at that has this stuff? As Releases · platformio/platform-espressif32 · GitHub says, the ESP-IDF version used here is 4.4.1, so you should be getting your examples at GitHub - espressif/esp-idf at v4.4.1.

I’m looking at the master branch. I found that cloning this and copying components/adc_oneshot into ~/.platformio/packages/framework-espidf/components did the trick.

I guess the feature is just really new and I didn’t realise.