• Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Adding MCP23017 on i2c

    Scheduled Pinned Locked Moved Official API - Evok
    i2cmcp2308
    2 Posts 2 Posters 2.2k Views 1 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
      tradlost.se
      last edited by

      I am building a custom board with a MCP23008 and some other gadgets. I need a way to access the i2c bus and address this chip. Since the UniPi already has one on board, there should be no problems. From what I figure out, I just make a new instance of the class UnipiMcp with the correct address. After digging into the sources, I figured out how to add a config block.

      [MCP_2]
      i2cbus = 1 ; link to I2CBUS_X
      address = 0x21 ; i2c address

      Look suspiciously similar to a EMO-R8 doesn't it?

      So I can treat my odd card just like the EMO-R8 even if it does something completely different?

      T 1 Reply Last reply
      Reply Quote 0
      • T
        tomas_hora administrators @tradlost.se
        last edited by

        @tradlost.se Basically yes, but since I do not know much about your board it is hard to tell.

        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
        • First post
          Last post