LO1 reference design and SPI



  • Hi all!
    In the reference design for the LO1 OEM board, the GPIO21/P12 is used to switch the WiFi Antenna between a onboard chip antenna, and a antenna socket.
    Can someone confirm, that I have no SPI functionality with this refence design, because GPIO21 ist also the MISO signal of the SPI bus?

    Cheers,
    Thomas



  • @jmarcelino
    D'oh! You'r right. It's a ESP32. After 20 years with Atmels and PICs, my mind falls back into this world...

    Cheers,
    Thomas



  • @Thosch42
    You can re-assign the SPI by adding the pins=(CLK, MOSI, MISO) parameter at initialization, e.g:

    spi = SPI(0, mode=SPI.MASTER, baudrate=2000000, polarity=0, phase=0,pins=('P21','P22','P23'))



Looks like your connection to Pycom Forum was lost, please wait while we try to reconnect.