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 pin

    Scheduled Pinned Locked Moved WiPy 2&3
    3 Posts 3 Posters 187 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.
    • C Offline
      ciccio
      last edited by

      Hi all,
      I have to do two I2C lines and I have a disposition 4 pin: P8 P20 P15 P16.
      For the first I2C I have P9 and P10
      My question is Can i use two lines I2C together?
      Thanks
      Francesco

      robert-hhR O 2 Replies Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh @ciccio
        last edited by

        @ciccio
        In case you need to connect more than one I2C device: you can have multiple I2C devices on one I2C bus
        In case you really need two distinct I2C interfaces: Yes, you can define that. When defining the I2C, you can specify the GPIO ports used for that. You can however not use P15 or P16, because these are input only pins. P8 and P20 are fine, unless you want to use the SD card, which also uses P8.

        1 Reply Last reply Reply Quote 0
        • O Offline
          oligauc @ciccio
          last edited by

          @ciccio An i2c master can be connected to multiple slave devices. Please read this artice. Please however notice that the pycom devices can be configure as master only

          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