Shut off 2.8LCD TFT Touchscreen
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- 3vilpenguin
- Posts: 6
- Joined: Mon Jun 11, 2012 10:39 am
Shut off 2.8LCD TFT Touchscreen
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?
- adafruit_support_bill
- Posts: 88097
- Joined: Sat Feb 07, 2009 10:11 am
Re: Shut off 2.8LCD TFT Touchscreen
Are you using the breakout board or the shield version of that display?
- 3vilpenguin
- Posts: 6
- Joined: Mon Jun 11, 2012 10:39 am
Re: Shut off 2.8LCD TFT Touchscreen
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.
- adafruit_support_bill
- Posts: 88097
- Joined: Sat Feb 07, 2009 10:11 am
Re: Shut off 2.8LCD TFT Touchscreen
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.
For the breakout, there is a separate backlight pin on the header.
- 3vilpenguin
- Posts: 6
- Joined: Mon Jun 11, 2012 10:39 am
Re: Shut off 2.8LCD TFT Touchscreen
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:
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:
Edit
Not sure what was wrong, it's all fine now =)
I tried to take as good a picture as possible:
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 =)
Please be positive and constructive with your questions and comments.