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

    Set MISO for GRBL 13.2 and Core2

    Modules
    2
    4
    4.2k
    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.
    • E
      em
      last edited by

      I am trying to use GRBL 13.2 module with Core2. But i can't figure out how to set MISO to GPIO38 in UIFlow and Android since it changed from GPIO19.

      Without adapting Core2 reboots after calling the library.

      Could anyone please gibe me a hint if this is possible and how?

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

        Hello @em

        you are correct MISO has changed in M5Core2 from GPIO19 to GPIO38. However you shouldn't need to modify that manually. Instead it will be taken care of when you use the M5Core2 library (instead of M5Stack library).
        In the Arduino example change the include file

        // #include <M5Stack.h>
        #include <M5Core2.h>
        

        and then in setup comment these lines out

        //  M5.Power.begin();
        ...
        //  Serial.begin(115200);
        

        With the above changes I can compile and run the code on my M5Core2 (no crash). Please note though - I don't have the GBRL module so I cannot fully test the result.

        In UiFlow the correct MISO GPIO should be used automatically when you select M5Core2 as device.

        Thanks
        Felix

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

        1 Reply Last reply Reply Quote 0
        • E
          em
          last edited by

          Thanks for the hints. I connected the module and now it works in UIFlow and with your hint in Anduino! Thanks a lot!

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

            Hello @em

            glad to hear. And thanks for reporting back.

            Thanks
            Felix

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

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