Shut off 2.8LCD TFT Touchscreen

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
3vilpenguin
 
Posts: 6
Joined: Mon Jun 11, 2012 10:39 am

Shut off 2.8LCD TFT Touchscreen

Post by 3vilpenguin »

I want to program in a way to shut off the screen during long periods of inactivity. In the header file I don't see any code that might do the job. Is there a way to safely write to one of the pins in use (A3/A2/A1/A0) To shut it off until the touchscreen registers a hit?

User avatar
adafruit_support_bill
 
Posts: 88097
Joined: Sat Feb 07, 2009 10:11 am

Re: Shut off 2.8LCD TFT Touchscreen

Post by adafruit_support_bill »

Are you using the breakout board or the shield version of that display?

User avatar
3vilpenguin
 
Posts: 6
Joined: Mon Jun 11, 2012 10:39 am

Re: Shut off 2.8LCD TFT Touchscreen

Post by 3vilpenguin »

For right now I'm using the 2.8" with arduino shield, however when all my prototyping is done I plan on using the 2.8lcd/touch with the breakout board on top of a Prototino.

User avatar
adafruit_support_bill
 
Posts: 88097
Joined: Sat Feb 07, 2009 10:11 am

Re: Shut off 2.8LCD TFT Touchscreen

Post by adafruit_support_bill »

For the shield: Look for the two backlight jumpers on the back. Cut the trace between the VCC jumper using a sharp knife and then solder the jumper labeled Pin 3. Then you can use Digital 3 to control the backlight.

For the breakout, there is a separate backlight pin on the header.

User avatar
3vilpenguin
 
Posts: 6
Joined: Mon Jun 11, 2012 10:39 am

Re: Shut off 2.8LCD TFT Touchscreen

Post by 3vilpenguin »

I had this issue, and did this step but now the LCD won't turn on at all =(
I tried to take as good a picture as possible: Image

I have two of these, one that I cut the trace/soldered, one that I didn't, the unmodified still works, so it's not the code.
I used the tftbmp_shield example, added in:

Code: Select all

void loop(void) {
  if (digitalRead(BUTTON_PIN) == HIGH) {
    digitalWrite(BACKLIGHT_PIN, HIGH);
  } else {
    digitalWrite(BACKLIGHT_PIN, LOW);
  }
}

Edit
Not sure what was wrong, it's all fine now =)

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”