0

PiTFT 2.8 Backlight trouble
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

PiTFT 2.8 Backlight trouble

by prupert on Sun Feb 11, 2018 6:50 pm

Hi

I've successfully got my 2.8 PiTFT working on my early revision Pi 1 Model B (the one with 256MB memory and a 20 pin header).

However, I really can't master the backlight control (I'd like to lower the brightness, but not turn the screen off entirely). Following the instructions here: https://learn.adafruit.com/adafruit-pit ... ht-control I can turn on and off the backlight via:

sudo sh -c 'echo "0" > /sys/class/backlight/soc\:backlight/brightness'
and
sudo sh -c 'echo "1" > /sys/class/backlight/soc\:backlight/brightness'

But none of the commands using gpio 18 work for me. Running ls -l /sys/class/gpio, I get:
total 0
-rwxrwx--- 1 root gpio 4096 Feb 11 22:33 export
lrwxrwxrwx 1 root gpio 0 Feb 11 22:31 gpiochip0 -> ../../devices/platform/soc/20200000.gpio/gpio/gpiochip0
lrwxrwxrwx 1 root gpio 0 Feb 11 22:31 gpiochip506 -> ../../devices/platform/soc/20204000.spi/spi_master/spi0/spi0.1/stmpe-gpio/gpio/gpiochip506
-rwxrwx--- 1 root gpio 4096 Feb 11 22:31 unexport

I feel I also need a gpiochip508 entry here but I don't have this. Doing sudo sh -c "echo 508 > /sys/class/gpio/export", I get an IO error.

I've definitely got the resistance version, not the capacitive version, since the image showing the bit you need to solder doesn't match mine and I can see STMPE610 printed on my board.

Any idea what I can do to get more control over the brightness?

prupert
 
Posts: 1
Joined: Sun Feb 11, 2018 6:36 pm

Re: PiTFT 2.8 Backlight trouble

by Tallboyt on Sun Apr 22, 2018 6:17 pm

Can anyone help? I have the 3.2 " that sits a top the pi and am in the same situation. The python commands about the 18 don't work (yet on and off sudo works) and checking the gpio for me I found 508 has a question mark next to it (so it's not even saying backlight for 508?). I did the adafruit recommended install and retropie shows up perfectly on the display.

Tallboyt
 
Posts: 1
Joined: Sun Apr 22, 2018 6:12 pm

Re: PiTFT 2.8 Backlight trouble

by adafruit_support_carter on Tue Apr 24, 2018 11:32 am

But none of the commands using gpio 18 work for me.

Did it print out any kind of error messages?

@Tallboyt Please start a new thread for your issue.

adafruit_support_carter
 
Posts: 6635
Joined: Tue Nov 29, 2016 2:45 pm

Please be positive and constructive with your questions and comments.