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

I2S Missing #2294

Open
DevInOrbit opened this issue Mar 16, 2024 · 3 comments
Open

I2S Missing #2294

DevInOrbit opened this issue Mar 16, 2024 · 3 comments
Labels
api-suggestion Early API idea and discussion, it is NOT ready for implementation Priority:3 Work that is nice to have up-for-grabs Good issue for external contributors to iot

Comments

@DevInOrbit
Copy link

Can not locate I2S samples or related classes. Did support for I2S get removed?

@DevInOrbit DevInOrbit added the bug Something isn't working label Mar 16, 2024
@pgrawehr
Copy link
Contributor

As far as I know, it was never there. What exactly do you want to do?

@DevInOrbit
Copy link
Author

Reading from a mems microphone (INMP441) using I2S. I am unsure how I would generate the serial clock signal and properly sample the SD pin to get valid PCM data back. Any direction on this would be much appreciated.

@Ellerbach
Copy link
Member

I2S is implemented on the .NET nanoFramework side and you can take inspiration on the API: https://github.com/nanoframework/System.Device.I2s

On a Linux system, it will be different, the system you are using needs to support it at the driver level, you may have to add couple of elements.

On a Raspberry Pi, just activate the feature like this:

sudo nano /boot/config.txt

Uncomment the line or add it dtparam=i2s=on

Reboot.

Now, accessing it is a more complicated story. You can look at tools like alsa-utils to see how they are using I2S and use interoperability or even directly use the tools under a command line.

@Ellerbach Ellerbach added api-suggestion Early API idea and discussion, it is NOT ready for implementation and removed bug Something isn't working labels Mar 21, 2024
@krwq krwq added Priority:3 Work that is nice to have up-for-grabs Good issue for external contributors to iot labels Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-suggestion Early API idea and discussion, it is NOT ready for implementation Priority:3 Work that is nice to have up-for-grabs Good issue for external contributors to iot
Projects
None yet
Development

No branches or pull requests

4 participants