Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    LO1 reference design and SPI

    Scheduled Pinned Locked Moved LoPy
    lo1spipinoutext. antennaantenna
    3 Posts 2 Posters 1.1k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T Offline
      Thosch42
      last edited by

      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

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        jmarcelino @Thosch42
        last edited by jmarcelino

        @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'))

        T 1 Reply Last reply Reply Quote 0
        • T Offline
          Thosch42 @jmarcelino
          last edited by

          @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

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post

          Pycom on Twitter

          Pycom