How to specify the I2S port number with ESP Arduino core 3.x.x API?

copych
Posts: 20
Joined: Tue Mar 07, 2023 6:04 pm

How to specify the I2S port number with ESP Arduino core 3.x.x API?

Postby copych » Wed Oct 30, 2024 11:20 am

In 2.x.x it was a mandatory to specify the port number in most setting and operating functions, but in the new 3.x.x API I don't find where to specify if it is I2S0 or I2S1. Is it no longer possible at all, or do I have to use lower level access to specify the port number?

ESP_Sprite
Posts: 9757
Joined: Thu Nov 26, 2015 4:08 am

Re: How to specify the I2S port number with ESP Arduino core 3.x.x API?

Postby ESP_Sprite » Thu Oct 31, 2024 12:03 am

I'm not exactly sure about Arduino, but the new drivers in ESP-IDF automatically allocate a free I2S port when you initialize it; I imagine Arduino works the same.

User avatar
ESP_Me-no-dev
Posts: 80
Joined: Mon Jan 04, 2016 6:30 pm

Re: How to specify the I2S port number with ESP Arduino core 3.x.x API?

Postby ESP_Me-no-dev » Thu Oct 31, 2024 10:40 am

It automatically allocates an available port. No need to specify

copych
Posts: 20
Joined: Tue Mar 07, 2023 6:04 pm

Re: How to specify the I2S port number with ESP Arduino core 3.x.x API?

Postby copych » Thu Oct 31, 2024 5:54 pm

ESP_Sprite ESP_Me-no-dev thank you!

Who is online

Users browsing this forum: No registered users and 103 guests