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

[Feature Request] - LED Matrix serial number device identifier settable by dip switches #97

Open
iliabaranov opened this issue Feb 28, 2024 · 0 comments

Comments

@iliabaranov
Copy link
Contributor

Hey all,

If you are running two of the same led matrix modules, the following code is what sets the serial number:

const DEFAULT_SERIAL: &str = "FRAKDEBZ0100000000";

However, these IDs are the same for both modules, so in linux this means I can't differentiate between them by using /dev/serial/by-id

It'd be better to use this ID instead of something like ttyACM0, because those can change on boot.

I'd recommend this ID is settable by the dip switches on the back of the module, so we can get something like FRAKDEBZ0100000000 and FRAKDEBZ0100000001

I'll make a pull request for this if people agree (eventually ;) )

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

1 participant