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

    Stamp ext IO2 (SKU:S002) able to use individual pins, not just one mode for the whole board!

    Features Wish List
    4
    12
    10.8k
    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
      teastain
      last edited by

      Currently it seems that the Stamp ext IO2 can only be in one mode for all pins, set by the command: (for example)
      extio_io_mode_t mode = DIGITAL_OUTPUT_MODE;
      or
      extio.setAllPinMode(RGB_LED_MODE);
      Also like the RGB mode to support a string, not just one SK6812.
      Thanks for listening.
      Terry

      Cheers, Terry!

      100% M5Stack addict with several drawers full of product!

      ajb2k3A 1 Reply Last reply Reply Quote 1
      • ajb2k3A
        ajb2k3 @teastain
        last edited by

        @teastain thanks, it’s sat on my bench waiting to be tested but been busy with writing up other documents

        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
        • felmueF
          felmue
          last edited by

          Hello @teastain

          I've just created a pull-request in the github repository which adds a function to set the mode of a single pin.

          Thanks
          Felix

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

          teastainT 1 Reply Last reply Reply Quote 1
          • M
            macsbug
            last edited by macsbug

            This post is deleted!
            teastainT 1 Reply Last reply Reply Quote 0
            • teastainT
              teastain @macsbug
              last edited by

              Hi! @macsbug thanks for responding, I usually use the Adafruit library because it Works! Easily! Logically!
              Actually I'm referring to the Stamp io2 ext module which is accessed via I2C.
              The resident controller is an STM, the Stamp has to send the request through I2C and be executed by the STM !
              Terry

              Cheers, Terry!

              100% M5Stack addict with several drawers full of product!

              M 1 Reply Last reply Reply Quote 0
              • teastainT
                teastain @felmue
                last edited by

                @felmue Thanks Felix, I'll try it once The Powers That Be approve !!!
                Does it work for you?
                Thanks Terry

                Cheers, Terry!

                100% M5Stack addict with several drawers full of product!

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

                  Hello @teastain

                  yes, it works for me. I've tested it with pin 2 as RGB output, pin 5 as digital output and the rest as digital inputs.

                      extio.setAllPinMode(DIGITAL_INPUT_MODE);
                      extio.setPinMode(2, RGB_LED_MODE);
                      extio.setPinMode(5, DIGITAL_OUTPUT_MODE);
                  

                  Thanks
                  Felix

                  P.S. be prepared that approval could take some time. In the past some of my pull-requests took almost a full year to be approved by M5Stack.

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

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

                    @teastain

                    Hi! @teastain
                    I'm sorry.
                    I didn't understand the question.
                    Therefore, the post has been deleted.

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

                      Hello @teastain

                      FYI: I stand corrected. My pull-request already has been approved. Nicely done M5Stack.

                      Thanks
                      Felix

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

                      teastainT 2 Replies Last reply Reply Quote 0
                      • teastainT
                        teastain @felmue
                        last edited by

                        @felmue GOOD JOB!
                        I downloaded the new library and made a mixed program with one pin Output and another RGB...
                        Works perfectly. I studied your library...maybe next time I will try!
                        Much thanks, Terry

                        Cheers, Terry!

                        100% M5Stack addict with several drawers full of product!

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

                          @felmue Hi Felix, me again.
                          Regarding the PaHub:
                          I found the Official M5Stack PaHub example to be of little help to write a useful project with 2 sensors with the same I2C address. I made this example very minimalist using a M5Stack Core Basic controller.
                          PaHub Example with 2 ENVII temperature sensors:
                          I put it on GitHub https://github.com/teastainGit/Simple-PaHub-example
                          Would you have time to look it over and "Maybe" submit it to M5Stack? To be added to their example for PaHub?
                          If not could you tell me how to submit it? I am asking you because you have a great reputation with them!!!
                          Cheers! Terry

                          Cheers, Terry!

                          100% M5Stack addict with several drawers full of product!

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

                            Hello @teastain

                            your example looks fine to me. Nicely done.

                            Regarding submission: you can create a pull-request for yourself, inside the M5Stack repository, which adds your example and M5Stack engineers eventually will check it out.

                            Thanks
                            Felix

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

                            1 Reply Last reply Reply Quote 1
                            • First post
                              Last post