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

cant change the start channel #57

Open
michaelkpierce opened this issue Jun 21, 2024 · 6 comments
Open

cant change the start channel #57

michaelkpierce opened this issue Jun 21, 2024 · 6 comments

Comments

@michaelkpierce
Copy link

Hi Jostein,
I've been using your library on a small project that I am working on. I works great when the starting channel is 1!
However, I don't seem to be able to move the Start_channel. For instance I would like the starting channel to be 20. When I change the starting channel like so
#define START_CHANNEL 20
#define NUM_CHANNELS 4
Its still working with starting channel as 1.

Is this not supposed to be the way that it works.

I suppose I can try to work around by inputing all 512 channels and then only looking for the channels that I want in the buffer.

Thanks
Michael Pierce

@SutliffeProductions
Copy link

I've not got my test rig in front of me to check this out right now, but can you post your code? Do you have this problem with the example programs?

@michaelkpierce
Copy link
Author

michaelkpierce commented Jun 21, 2024 via email

@DaAwesomeP
Copy link

I'm having the same issue--no matter what it it seems to stick to channel 1.

@DaAwesomeP
Copy link

Taking a look at DmxInput.cpp, it doesn't look like start_channel or _start_channel are ever sent to the PIO or used beyond setting up the buffer.

@michaelkpierce
Copy link
Author

michaelkpierce commented Sep 8, 2024 via email

@DaAwesomeP
Copy link

I see. I'm using FreeRTOS and trying to keep memory small per task.

This commented out line looks like the culprit that maybe @jostlowe left unfinished:

//pio_sm_put_blocking(pio, sm, (start_channel + num_channels) - 1);

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

3 participants