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

    i2C Default Pins

    Scheduled Pinned Locked Moved WiPy 2&3
    ssd1306default pins
    4 Posts 3 Posters 738 Views 3 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.
    • J Offline
      jimmie
      last edited by jimmie

      I would appreciate help with connecting an SSD1306 to an Expansion Board (3.0) and WiPy(3).

      What are the i2C default pins? I am getting confused with P, G pins etc.

      Is this the correct statement:

      i2c = I2C(scl=Pin(22), sda=Pin(21), freq=100000)

      ===============================

      Can the community refer me to a complete SSD1306-i2C example? I am just starting using this board.

      Thanks in advance.

      robert-hhR 1 Reply Last reply Reply Quote 0
      • S Offline
        svonbentzel
        last edited by svonbentzel

        I2C(0, I2C.MASTER, baudrate=100000, pins=("P9","P10"))

        on Expansion Board
        G16 SDA
        G17 SCL

        look at my post a few days ago ;-)

        i2c device Wiring on Expansion Board & WiPy 3.0

        1 Reply Last reply Reply Quote 0
        • robert-hhR Offline
          robert-hh @jimmie
          last edited by robert-hh

          @jimmie The G numbers are assigned to the expansion board (see https://docs.pycom.io/datasheets/boards/expansion3), whereas the P numbers are assigned to the development modules (e.g. https://docs.pycom.io/datasheets/development/wipy3). So a certain Pin can be addresses by at least two names, not to mention the machine.Pin.exp_board.Gxx and machine.Pin.module.Pxx names. For instance, Pin "P9" could also be addressed as "G16", machine.Pin.module.P9 or machine.Pin.exp_board.G16.
          Quite confusing indeed. So it's best to stick to a certain name convention. Most people and examples use the "Pxx" variant.

          1 Reply Last reply Reply Quote 0
          • J Offline
            jimmie
            last edited by

            @svonbentzel

            Thank you very much. I appreciate it.

            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