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

PWM signal on rp2040 #1244

Open
Emru1 opened this issue Aug 15, 2024 · 1 comment
Open

PWM signal on rp2040 #1244

Emru1 opened this issue Aug 15, 2024 · 1 comment

Comments

@Emru1
Copy link

Emru1 commented Aug 15, 2024

Can I somewhat use PWM in AtomVM on rp2040?
Is it available from Erlang code, or do I need to write a NIF.

What about rp2040 PIO?

@UncleGrumpy
Copy link
Collaborator

We don't have PWM support added for rp2040 yet. That is usually a fairly simple peripheral to support. I have not had time yet to look how it is done in the pico-sdk, but this should be easy enough to add. We don't support PIO yet either, that is a much more complicated situation. The only peripheral (besides WiFi on the PicoW) that we currently support is GPIO, I think I2C, SPI, ADC, PWM are higher priorities than PIO at the moment. I'm not sure about the practicality of including custom user assembly for the PIO driver in the VM, this wouldn't work for release binaries, @pguyot is our rp2040 guru, so maybe he has an idea about this.

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

2 participants