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

default state machine for dmx input #58

Open
lokkiikkol opened this issue Nov 11, 2024 · 1 comment
Open

default state machine for dmx input #58

lokkiikkol opened this issue Nov 11, 2024 · 1 comment

Comments

@lokkiikkol
Copy link

lokkiikkol commented Nov 11, 2024

what is the default sm for dmx input? I could see a way to choose a pio for dmx output, but did not see such a feature for dmx input, so is it always pio0 for input? also does it just use one state machine? so the other 3 are free to use for other stuff? or is there a way to set a specific pio and sm for input as well? EDIT: ok, there is a way to choose pio for the input as well, I saw the description just now in the Arduino IDE. There is no specific description of the used sm's though, but I guess at minimum 2 and one more for each additional instance?

@jostlowe
Copy link
Owner

Hi! If i remember correctly, this library uses the function pio_claim_unused_sm from the SDK of the pico, so it picks the first available state machine which has not been claimed.

A DMX input uses only one state machine per input.

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