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

unable to address 512th channel #11

Open
lowcid opened this issue Jun 2, 2017 · 1 comment
Open

unable to address 512th channel #11

lowcid opened this issue Jun 2, 2017 · 1 comment

Comments

@lowcid
Copy link

lowcid commented Jun 2, 2017

I am unable to address the 512th DMX channel.

When writing to 4 channels, i need to dmx.init(5).
So with dmx.init(512) i can write to the first 511 channels. With dmx.init(513) it defaults back to 32 (as by design).

@julienlev
Copy link

julienlev commented May 29, 2019

It's a really old message but for anyone using this library today, here is the solution.
Edit the ESPDMX.cpp file, on line 20 change "#define dmxMaxChannel 512" to 513.
In your code write "dmx.init(513)"
If you want to keep the code part "logical" and keep "dmx.init(512)", in ESPDMX.cpp on line 51 write:
chanSize = chanQuant+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

2 participants