Esp32_i2s import includepath

I’m trying to import the built-in esp32 i2s header with:

#include <ESP_I2S.h>

but it’s throwing:

#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit.

I have tried to rebuild the intellisense index but it’s still not finding it; am I supposed to separately download esp32-arduino to get these?

thanks

There is no builtin “ESP_I2S.h” but I2S.h

thanks, but that’s v2, v3 onwards uses ESP_I2S now

https://docs.espressif.com/projects/arduino-esp32/en/latest/api/i2s.html#sample-code

But Arduino 3.x ist not yet available to PlatformIO!

is there a beta branch or a way to make use of this? in arduino IDE I can pull v3

PlatformIO != ArduinoIDE

Espressif32 Arduino 3.x has not (yet) been released by PlatformIO

But you can try

platform_packages=
  framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.1
  framework-arduinoespressif32-libs @ https://github.com/espressif/arduino-esp32/releases/download/3.0.1/esp32-arduino-libs-3.0.1.zip
1 Like

yeah sorry I know they are two separate projects, just was saying that’s where it worked for me before migrating to PIO, trying out your snippet right now and will report back after “configuring toolchain packages from a remote source” runs through :slight_smile: appreciate it

that seems to have fixed it, thanks for you incredibly fast response! appreciate it

1 Like

I still have the same problem:

Processing seeed_xiao_esp32s3 (platform: espressif32; board: seeed_xiao_esp32s3; framework: arduino)
-------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/seeed_xiao_esp32s3.html
PLATFORM: Espressif 32 (6.12.0) > Seeed Studio XIAO ESP32S3
HARDWARE: ESP32S3 240MHz, 320KB RAM, 8MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-builtin, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES: 
 - framework-arduinoespressif32 @ 3.20017.241212+sha.dcc1105b 
 - tool-esptoolpy @ 2.40900.250804 (4.9.0) 
 - toolchain-riscv32-esp @ 8.4.0+2021r2-patch5 
 - toolchain-xtensa-esp32s3 @ 8.4.0+2021r2-patch5
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 33 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Compiling .pio/build/seeed_xiao_esp32s3/src/main.cpp.o
src/main.cpp:7:10: fatal error: ESP_I2S.h: No such file or directory

A year has passed and a lot of things happened since the last post here. One of those things is pioarduino’s espressif32 platform which brings the latest Espressif Arduino Framework to PlatformIO.

1 Like

Thank You, that works!