Closed josef2600 closed 5 hours ago
I2SClass i2s is part of the Arduino I2S API. If you are using a core < 3.0 you need to adapt the example it to the old Arduio I2S API since this has changed as well! Have a look at the ESP32 I2S examples provided by Arduino!
This is described in the README
I2SClass i2s is part of the Arduino I2S API. If you are using a core < 3.0 you need to adapt the example it to the old Arduio I2S API since this has changed as well! Have a look at the ESP32 I2S examples provided by Arduino!
This is described in the README
did you read the post? no! Arduino Core 3.0.7 and it is exactly your sample. i said if you have the time check them. if not, what is the point of reporting?
I compiled the sketch in Arduino 3.1rc3 and 3.0.7 and for me it is working w/o issues.
Did you try to compile one of the I2S examples provided by Arduino. I guess something is wrong with your core installation!
in Arduino example :
void setup() {
// Create an instance of the I2SClass
I2SClass i2s;
...
I2SClass i2s;
is inside the setup, not outside.
and it has#include <ESP_I2S.h>
Simple_tone.ino compiles w/o issue. What did you try ? ES8388_loop_back.ino compiles for me also w/o errors...
Did you enventually change the compiler-warning settings in the preferences from default to something else ?
no. the problem was from#include "ESP_I2S.h"
.
when inserting it, all works.
in the documents, non of them have it.
funny thing! you always say read them, but this time they were the problem!
example :bt_music_receiver_arduino_i2s
makes error : I2S.h: No such file or directory
thanks for your replies.
I don't understand: your example (from bt_music_receiver_arduino_i2s_3.ino) that you pasted above has this include!
If you read the comment in bt_music_receiver_arduino_i2s.ino, it clearly states that it is for ESP32 I2S < 3.0.0
Problem Description
in some of the samples you used
I2SClass i2s;
. all of them get'I2SClass' does not name a type
error. but withI2SStream
they work. and the rest of the codes are deprecated. check them if you had time.Device Description
esp32
Sketch
Other Steps to Reproduce
No response
Provide your Version of the EP32 Arduino Core (or the IDF Version)
Arduino Core 3.0.7
I have checked existing issues, discussions and online documentation