🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Stamp ext IO2 How to program for both Input and Output and RGB on same unit

    Scheduled Pinned Locked Moved Units
    5 Posts 4 Posters 6.1k Views
    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.
    • teastainT Offline
      teastain
      last edited by

      Stamp ext IO2...Arduino IDE library: extio.setAllPinMode(DIGITAL_OUTPUT_MODE); ALL PINS at once?
      How to program one pin for RGB, another Input and another Output, etc?
      Does not look like RGB supports string of more than one LED.

      Please help, Terry.

      Cheers, Terry!

      100% M5Stack addict with several drawers full of product!

      1 Reply Last reply Reply Quote 0
      • felmueF Offline
        felmue
        last edited by

        Hello @teastain

        yes, it looks like M5Stack engineers only provided a function to set the mode of all pins at together. Shouldn't be too hard to make a function which allows to set the mode of each pin individually though.

        RGB mode: yes, that is what I found as well. Only one LED per pin.

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        1 Reply Last reply Reply Quote 0
        • M Offline
          macsbug
          last edited by

          Hello @T teastain

          M5Stamp C3 programming examples
          https://forum.m5stack.com/topic/3749/m5stamp-c3-programming-examples

          1 Reply Last reply Reply Quote 0
          • ajb2k3A Offline
            ajb2k3
            last edited by

            Hi @teastain I am currently started a guide for the EXT I/O 2 units so give me a week to see what I find.

            UIFlow, so easy an adult can learn it!
            If I don't know it, be patient!
            I've ether not learned it or am too drunk to remember it!
            Author of the WIP UIFlow Handbook!
            M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

            1 Reply Last reply Reply Quote 0
            • teastainT Offline
              teastain
              last edited by

              @felmue Thanks for responding Felix!
              I am looking to hack the library, or my bad habit of dismantling one and putting the needed components "in-line" with the other code of the Main Loop in the Arduino IDE, but I admit that I am "Underwhelmed" by M5Stack's firmware and GitHub examples!!!
              I would LOVE to access the STM controller directly and make the ext IO2 be a sta
              nd alone processor, but whoa!
              I'll keep in touch...Terry

              Cheers, Terry!

              100% M5Stack addict with several drawers full of product!

              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