From b24fcd7aec4b34064e9d9016d417d4ca3cc925cc Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 11 Mar 2021 13:32:00 +1100 Subject: esp32/machine_hw_spi: Use default pins when making SPI if none given. The default pins can be optionally configured by a board. Fixes issue #6974. Signed-off-by: Damien George --- docs/esp32/quickref.rst | 1 + 1 file changed, 1 insertion(+) (limited to 'docs/esp32') diff --git a/docs/esp32/quickref.rst b/docs/esp32/quickref.rst index 79e61a10b..30c9b3b95 100644 --- a/docs/esp32/quickref.rst +++ b/docs/esp32/quickref.rst @@ -302,6 +302,7 @@ has the same methods as software SPI above:: from machine import Pin, SPI + hspi = SPI(1, 10000000) hspi = SPI(1, 10000000, sck=Pin(14), mosi=Pin(13), miso=Pin(12)) vspi = SPI(2, baudrate=80000000, polarity=0, phase=0, bits=8, firstbit=0, sck=Pin(18), mosi=Pin(23), miso=Pin(19)) -- cgit v1.2.3