ESP32 esp-idf build problems, beginner question

Hello,

just started trying to program my ESP32 WROOM dev board with PlatformIO.

I copied the a2dp_sink Bluetooth example from espressif’s own esp-idf distribution which I downloaded off github into a PlatformIO project folder, with no changes whatsoever, and it didn’t compile.

This is how my platformio.ini is currently configured:

platform = espressif32 board = esp32dev framework = espidf monitor_baud = 115200

And these are the compile errors I get:

src\main.c: In function 'app_main': src\main.c:76:23: error: 'CONFIG_I2S_BCK_PIN' undeclared (first use in this function) .bck_io_num = CONFIG_I2S_BCK_PIN, ^ src\main.c:76:23: note: each undeclared identifier is reported only once for each function it appears in src\main.c:77:22: error: 'CONFIG_I2S_LRCK_PIN' undeclared (first use in this function) .ws_io_num = CONFIG_I2S_LRCK_PIN, ^ src\main.c:78:25: error: 'CONFIG_I2S_DATA_PIN' undeclared (first use in this function) .data_out_num = CONFIG_I2S_DATA_PIN, ^ *** [.pioenvs\esp32dev\src\main.o] Error 1

How do I get my code to run on my devboard with PlatformIO?

Cheers,

brainbug

Please use official stable examples: