Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated i2s_read_bytes function #16

Open
abaokbah opened this issue Nov 29, 2022 · 4 comments
Open

Deprecated i2s_read_bytes function #16

abaokbah opened this issue Nov 29, 2022 · 4 comments

Comments

@abaokbah
Copy link

Hi,

I tried to run the project on an older version of Arduino IDE and it works fine. However, when tried on the latest version, it throws back an error saying i2s_read_bytes isn't defined in the scope. When I did some troubleshooting, I discovered i2s_read_bytes has been deprecated and replaces with i2s_read.

The problem I'm having is a "too few arguments" whenever the verification reaches the i2s_read function. I looked up the function definition and it has an extra parameter (size_t *bytes_read) compared to i2s_read_bytes. I'm not sure what should go in there?

Any help would be greatly appreciated

Regards, Ali

@MenneBos
Copy link

MenneBos commented Feb 9, 2023

check the URL, someone did asked this before
https://esp32.com/viewtopic.php?f=13&t=30632

Not sure if it was solved.

@DooMIhor
Copy link

DooMIhor commented Jun 6, 2023

you would help a lot if you rewrote using the new i2s_read method

@Geethukulal
Copy link

int I2S_Read(char *data, int numData)
{
size_t bytes_read;
return i2s_read(I2S_NUM_0, (char *)data, numData, &bytes_read, portMAX_DELAY);
}

@Geethukulal
Copy link

Use this function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants