0

SD problem using Adafruit 2.8" TFT Touch Shield v2
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

SD problem using Adafruit 2.8" TFT Touch Shield v2

by Bazza on Wed May 26, 2021 3:27 pm

Hi, I am using the resistive version of the shield and a Uno. I have an issue with what appears to be a conflict when I add the the code to include SD routines. I'm using hardware SPI and the code uploads without a problem but the screen is blank and the touch doesn't work. I use 8 as the SD chip select. Any suggestions appreciated.

Bazza
 
Posts: 11
Joined: Sun Jan 29, 2017 4:36 am

Re: SD problem using Adafruit 2.8" TFT Touch Shield v2

by mikeysklar on Wed May 26, 2021 8:00 pm

Bazza,

Since the TFT and SD card sharing the SPI bus you will need to manually toggle the CS pins when flipping between the two devices. Pulling the CS pin high on the TFT and the SD CS pin low will give the SD card control of the bus. Doing the reverse will give the TFT control of the SPI bus.

mikeysklar
 
Posts: 5020
Joined: Mon Aug 01, 2016 8:10 pm

Re: SD problem using Adafruit 2.8" TFT Touch Shield v2

by Bazza on Tue Jun 01, 2021 7:41 am

Thanks for the prompt reply. I actually solved this by accident. I was looking at one of the Adafruit examples for loading bmp images from SD and realized that you have to insert the SD card before it can be enabled. Everything works fine now

Bazza
 
Posts: 11
Joined: Sun Jan 29, 2017 4:36 am

Please be positive and constructive with your questions and comments.