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

Inverting the output #26

Open
dougp2 opened this issue Dec 22, 2020 · 4 comments
Open

Inverting the output #26

dougp2 opened this issue Dec 22, 2020 · 4 comments

Comments

@dougp2
Copy link

dougp2 commented Dec 22, 2020

Thanks for the Library!

Would it be difficult to add an inversion feature/capability to the library? What I mean is, fading on/off seems to assume an Arduino output being driven high to light a common cathode LED. If the LED is common anode fade on/off must be reversed to show the desired effect.

@septillion-git
Copy link
Owner

Thanks!

Don't think it's worth adding it as a dedicated feature but it's already possible now. Just mirror the desired gamma table and use that table. This way the output is mirrored as well 😃

@dougp2
Copy link
Author

dougp2 commented Dec 22, 2020 via email

@septillion-git
Copy link
Owner

.on() and .off() are just shorthand for .set(0) and .set(max) so they should also flip when you use a mirrored gamma table.

@dougp2
Copy link
Author

dougp2 commented Dec 25, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants