QUERY · ISSUE
RP2 SPI: Instantiating with spi=None does not behave sensibly.
bugport-rp2
The constructor accepts None as an arg to miso, but still instantiates the default pin.
The clear intent is to create an output-only interface. Either it should reject the arg or (preferably) it should not instantiate a pin. Current behaviour can lead to unexpected pin conflicts.
This should also apply to mosi.
CANDIDATE · PULL REQUEST
esp32/machine_hw_spi: Allow None for unused pins in initializer.
port-esp32
Make the hardware SPI initializer method match the init() method by
allowing None to be given for sck/mosi/miso to specify an unused
signal.