-
Notifications
You must be signed in to change notification settings - Fork 524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to share the same SPI bus with TFT_eSPI on ESP32 #477
Comments
Are you pulling chip select high on the second device to to be initialized so it won't interfere with initializing of the first device? |
I am also facing the same issue. Did you find a solution ? |
Not all SD breakouts are the same. The ones that use a logic level shifter to work with 5V Arduinos tend not to work well with 3.3V MCUs. SD SPI is 3.3V so the sort of breakout you need should just have some resistors and capacitors on it, no voltage regulator or level shifter. |
I am in the same situation. I was able to get the SD to mount and list the files inside but only in the setup() function. After that, it does not list the files if the function is called inside loop() and also, when I tried to load a function that displays an image on the TFT screen it does not work. I am trying to use SdFs and the TFT_eSPI library and read/display images from the SD card. If anyone has found a solution or has one, it will be much appreciated. |
I have a ESP32-3248S035 board that also combines SD and TFT apparently. Any solution would be great. I'm happy to ship a board to someone to test. |
I've gotten it to work. Steps should be done in order to make TFT_eSPI and an SD card share Pin 5 as the Chip Select (TFT_CS and SD_CS). Here is what I did:
I had to cut and paste from my codebase so it may not run as is, but I hope this helps with the proper sequencing to get them working. |
I said above that you always must insure multiple devices on an SPI bus don't interfere. Best to set all chips selects high before initializing any. see Above.
|
Hi, I am using a LCD screen which shares its SPI bus with a SD reader on ESP32.
When I try to init the SdFat and then the TFT_eSPI, the SdFat doesn't work.
And when I try to init the TFT_eSPI and then the SdFat, the TFT_eSPI doesn't work.
The text was updated successfully, but these errors were encountered: