Skip to content

SPI-MISO and SD-card? #310

Answered by vitasam
vitasam asked this question in Q&A
Discussion options

You must be logged in to vote

Ah, just found from the code that it is a runtime detection (looks like defMOSI is set to default again):

bool MCP23S17::begin(int MISO, int MOSI, int CLK, int CS, int CSActiveState, int host)
{
  // defaults
  int defMISO = 35;
  int defMOSI = 12;
  int defCLK  = 14;
  int defCS   = -1;
  switch (getChipPackage()) {
    case ChipPackage::ESP32PICOD4:
      // setup for TTGO VGA32
      defMISO = 2;
      defMOSI = 12;
      break;

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vitasam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant