Multi Connect SPI

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
melmager
Posts: 3
Joined: Mon Sep 28, 2020 9:55 am

Multi Connect SPI

Post by melmager » Tue Oct 20, 2020 8:09 am

i use an wemos board
one SPI ist the for the TFT Port and a other for the SD Card.
Only Difference ist an other Chipselect Output.Pin- mosi/miso usw use the same Pins - technical no problem
The Driver for the TFT toggels the Chipselect - so no problem -
but toggels the SD Card Class the CS Pin ?
CS High > low > read/write > CS High - that is what i need :-)
Or must i write an toggel the CS Pin def for read/write to SD :-(

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: Multi Connect SPI

Post by jimmo » Tue Oct 20, 2020 12:41 pm

Hi,
Sorry I don't quite follow what you're asking.
It sounds like you have two devices on the same SPI bus, with their own nCS pins, and that the TFT driver is doing the right thing with its nCS pin. Is the issue that the SD card driver doesn't use a CS pin? On ESP32, the machine.SDCard class takes a CS pin to the constructor.

Post Reply