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

DMX for PICO without PIO #25

Closed
Gavin-Perry opened this issue Mar 16, 2022 · 5 comments
Closed

DMX for PICO without PIO #25

Gavin-Perry opened this issue Mar 16, 2022 · 5 comments

Comments

@Gavin-Perry
Copy link

RP2040 Pico using Arduino 2.0 IDE on Win11
I like the way your library makes DMX easy!
I've used all the PIOs for my 16 PWM LED lights. Is there a way for this lib to work with UART instead of PIO?
Also I'm looking for channel 400 - 512 for this particular app. Has issue re Start Chanel been fixed yet?

@Gavin-Perry
Copy link
Author

Sorry, I'm mixing up PWM slices (8) with the PIO blocks.
I suppose I can use all the PWM slices AND a PIO for the DMX
So only remaining issue is getting to channel 512 and from comments on that issue it looks like it might be fixed.

@kripton
Copy link
Contributor

kripton commented Mar 17, 2022

You are right, the PWM slices and the PIOs are two completely independent pieces of hardware. They do share the internal bus of course, but with "just" some DMX and PWM it will be far from saturated.
The start_channel-issue is still relevant if we are talking about DMX input: #15. You can receive and use all channels of a universe. However, you need to receive the complete universe and find the relevant channel yourself (= you allocate and provide a 513 byte large buffer and use the bytes relevant for you). The start_channel parameter was meant so if you're only interested in channels 500 t0 512, you would only need to provide a 12 byte large buffer and save some memory.

@Gavin-Perry
Copy link
Author

Gavin-Perry commented Mar 17, 2022 via email

@Gavin-Perry
Copy link
Author

Gavin-Perry commented Mar 18, 2022 via email

@Gavin-Perry
Copy link
Author

Gavin-Perry commented Mar 24, 2022 via email

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