- 
                Notifications
    
You must be signed in to change notification settings  - Fork 7.7k
 
Closed
Labels
Type: Feature requestFeature request for Arduino ESP32Feature request for Arduino ESP32
Milestone
Description
          > Wonderful. Purely for my own understanding, why would configuring the pin with pin mode cause the SPI to break? Does it disable the SPI interface?
In Arduino 3.0.0 there is a new feature called Peripheral Manager.
In the specific case of SPI, when any of its 4 pins (MOSI, MISO, CLK and CS) are used for any other function, for instance, with pinMode(), the whole SPI is detached. Therefore, SPI stops working, being necessary to restart it with SPI.begin().
I think that your example brings a good questioning because most displays will only care about using MOSI and not MISO.
I could also use CS pin  for something else and only set it as CS whenever it is necessary.
Therefore, I would say that we may review it in order to allow using SPI pins partly.
Originally posted by @SuGlider in #9040 (comment)
Metadata
Metadata
Assignees
Labels
Type: Feature requestFeature request for Arduino ESP32Feature request for Arduino ESP32
Type
Projects
Status
Done