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/
Locked
User avatar
erablitek
 
Posts: 8
Joined: Sun Dec 15, 2013 10:32 pm

2.8 Cap Touchscreen Backlight dimming

Post by erablitek »

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!

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: 2.8 Cap Touchscreen Backlight dimming

Post by adafruit_support_rick »

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);

User avatar
erablitek
 
Posts: 8
Joined: Sun Dec 15, 2013 10:32 pm

Re: 2.8 Cap Touchscreen Backlight dimming

Post by erablitek »

Perfect thanx a lot, can you post an exemple using RPI.GPIO in python ?

Thanx a lot!

You made really great stuff!

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: 2.8 Cap Touchscreen Backlight dimming

Post by adafruit_support_rick »

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.

User avatar
erablitek
 
Posts: 8
Joined: Sun Dec 15, 2013 10:32 pm

Re: 2.8 Cap Touchscreen Backlight dimming

Post by erablitek »

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!

Locked
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/

Return to “Adafruit Raspberry Pi® accessories”