Code Monkey home page Code Monkey logo

Comments (3)

greiman avatar greiman commented on July 18, 2024

I can't suggest a solution since I have no idea what hardware you have.

SdFat does have an option for using a port expander. but this is probably not practical.

You would need to provide the two functions described here.

Also here for another expander.

from sdfat.

ImkereiWetzel avatar ImkereiWetzel commented on July 18, 2024

Thanks! I have an ESP32 and connected is an Adafruit 3.5 TFT w/ capacitive touch w/ onboard SD slot.
I already use multiple port expanders for other purposes, so my solution uses a little single gate inverter (NOT-Gate) to select the lcd if the pin is low, and select the SD if high.
I will try to define my own functions and will come back if it works.

from sdfat.

greiman avatar greiman commented on July 18, 2024

my solution uses a little single gate inverter (NOT-Gate) to select the lcd if the pin is low, and select the SD if high.

It won't work. CS needs to be toggled in many places in the SD driver and is not just low when the driver is active. CS must not go low at random times since this may change the state of the SD.

It may sort of work but you will see instability.

SPI mode for SD cards barely works since the cards are designed for SD mode which is a very different protocol.

Here is one of the strange requirements for SPI on SD cards. It assumes no other device is active even though CS is high.

from sdfat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.