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

RGBLED code and docs improvements #976

Open
Slion opened this issue Jul 29, 2024 · 0 comments
Open

RGBLED code and docs improvements #976

Slion opened this issue Jul 29, 2024 · 0 comments

Comments

@Slion
Copy link

Slion commented Jul 29, 2024

Returning a copy of that RGBLED object fails to control the LED properly.
Creating a new instance with the same pins fails in the same way.
We could add a bit of class level documentation saying you can only have one instance targeting the same pins.
We could also disable the copy constructor to guide coders.

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