2.8" TFT Screen and LEDs?

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
ookachuca
 
Posts: 9
Joined: Mon Mar 17, 2014 6:40 pm

2.8" TFT Screen and LEDs?

Post by ookachuca »

Hey everyone!

Quick question, is it possible to have the 2.8" TFT+Touchscreen for Raspberry Pi (http://www.adafruit.com/products/1601) attached to my Pi and still be able to use the GPIO to control LEDs similar to this page? - https://projects.drogon.net/raspberry-p ... ingle-led/
If not, is it possible in another way? I will be needing both for my project.

User avatar
egutting
 
Posts: 297
Joined: Wed Nov 14, 2012 12:57 am

Re: 2.8" TFT Screen and LEDs?

Post by egutting »

It looks like you should be able to. The touchscreen has headers that are connected to the GPIO pins. The touchscreen uses SPI, so make sure that you're not trying to run LEDs off the pins that are used for that interface and you should be good.
Last edited by egutting on Tue Mar 25, 2014 1:23 pm, edited 1 time in total.

User avatar
pburgess
 
Posts: 4161
Joined: Sun Oct 26, 2008 2:29 am

Re: 2.8" TFT Screen and LEDs?

Post by pburgess »

If you're not using the clicky buttons, the following GPIO pins are available (on v2 boards):
2, 3, 4, 17, 18, 22, 23, 27
THESE ARE THE BROADCOM GPIO NUMBERS, not physical pin numbers.
2 & 3 are sometimes used for I2C, so you might want to steer clear of those.
14 & 15 can be freed up if you turn off the serial console in /etc/inittab
A few extra pins are also available on the P5 header.

ookachuca
 
Posts: 9
Joined: Mon Mar 17, 2014 6:40 pm

Re: 2.8" TFT Screen and LEDs?

Post by ookachuca »

So would I set those pins up the same way I would for the clicky buttons? (I'm farely new to the Pi and Linux) so I'm not quite sure how I would set that up since its not directly on the GPIO.

User avatar
egutting
 
Posts: 297
Joined: Wed Nov 14, 2012 12:57 am

Re: 2.8" TFT Screen and LEDs?

Post by egutting »

If you use the clicky buttons and assign them the pins that are in the tutorial, then that would leave you 2,3,4,17 & 27 (as tutorial says that buttons use 18, 21, 22, & 23)

ookachuca
 
Posts: 9
Joined: Mon Mar 17, 2014 6:40 pm

Re: 2.8" TFT Screen and LEDs?

Post by ookachuca »

Ok ill give it a shot. Thanks for the quick and helpful responses from everyone!

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”