Hi, i would like to know if it is possible to dim and even shutdown the backlight of the screen, i am using this touchscreen on battery powered device and it consume a lot of energy!
Thanx a lot!
2.8 Cap Touchscreen Backlight dimming
Moderators: adafruit_support_bill, adafruit
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: 2.8 Cap Touchscreen Backlight dimming
Yes, you can do it.
Solder closed the Backlite jumper pad on the back of the display. That puts the backlight under control of pin 5. You can PWM the display to control its brightness (for example, analogWrite(5, 32);), or you can turn it off entirely with digitalWrite(5, LOW);
Solder closed the Backlite jumper pad on the back of the display. That puts the backlight under control of pin 5. You can PWM the display to control its brightness (for example, analogWrite(5, 32);), or you can turn it off entirely with digitalWrite(5, LOW);
- erablitek
- Posts: 8
- Joined: Sun Dec 15, 2013 10:32 pm
Re: 2.8 Cap Touchscreen Backlight dimming
Perfect thanx a lot, can you post an exemple using RPI.GPIO in python ?
Thanx a lot!
You made really great stuff!
Thanx a lot!
You made really great stuff!
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: 2.8 Cap Touchscreen Backlight dimming
Python? I thought you were referring to the Arduino version.
You still have backlight control with the Pi version, but it's GPIO 18.
Sorry, but I'm useless at Pi and python.
You still have backlight control with the Pi version, but it's GPIO 18.
Sorry, but I'm useless at Pi and python.
- erablitek
- Posts: 8
- Joined: Sun Dec 15, 2013 10:32 pm
Re: 2.8 Cap Touchscreen Backlight dimming
Ok if it is GPIO 18 i am OK with that, i was not recognizing the function you have writen in the last post but with that is is pefect thanx a lot!
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/