2.8" TFT LCD and Mega - How to get Gnd and 5V
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- jdwroten
- Posts: 4
- Joined: Sat Aug 23, 2014 8:04 pm
2.8" TFT LCD and Mega - How to get Gnd and 5V
I'm using the 2.8" TFT LCD shield w/touchscreen and Mega. I need access to the Gnd and 5V pins to hook up a SPST switch to a Digital Pin so I can read its status. There are lots of digital pins (22-53), but the GND and 5V pins are used by the 2.8" TFT. What's the best way to hook up my switch? BTW, I actually have 3 switches that I will hook up.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: 2.8" TFT LCD and Mega - How to get Gnd and 5V
You don't need 5V to read a switch. You just need ground, and there is a GND near Pin 53 on the lower right of the Mega. Connect the switch between a digital pin and GND, and enable the internal 5V pullup on the digital pin.
- jdwroten
- Posts: 4
- Joined: Sat Aug 23, 2014 8:04 pm
Re: 2.8" TFT LCD and Mega - How to get Gnd and 5V
Thanks much!
Please be positive and constructive with your questions and comments.