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

How to fade backlight? #28

Open
ajk1982 opened this issue Jul 1, 2018 · 2 comments
Open

How to fade backlight? #28

ajk1982 opened this issue Jul 1, 2018 · 2 comments

Comments

@ajk1982
Copy link

ajk1982 commented Jul 1, 2018

Thanks for creating this library! One thing I am struggling with is the backlight. I have tried various things to get the backlight to fade in. It seems all I can do is have it on or off. For example when analog write goes over 127 and backlight come on then when it goes below 128 it turns off. Do you think you could possibly provide an example sketch in the library demonstrating this?

@Nkawu
Copy link
Owner

Nkawu commented Jul 18, 2018

Another contributor added this functionality to the library. I will try to test it as soon as I can to verify.

@PeratX
Copy link

PeratX commented Jul 19, 2018

You should connect the LED pin to a hardware PWM pin. (I am using ATmega2560, so I connect it to pin 3)
Then just use the TFT_22_ILI9225::setBacklightBrightness() to change it

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