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

    How to enable the extra 5v power?

    Scheduled Pinned Locked Moved General
    2 Posts 2 Posters 3.4k 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.
    • B Offline
      babygirl1248
      last edited by babygirl1248

      I have the aws version of the core 2, I have read I need to change SetBusPowerMode(0); to SetBusPowerMode(1);. but where do I specify this? Can it be in the ino file? or does it have to be in a header or cpp file?

      EDIT: I found this in the documentation "M5.begin(bool LCDEnable = true, bool SDEnable = true, bool SerialEnable = true, bool I2CEnable = false, mbus_mode_t mode = kMBusModeOutput);" However i get an error saying expected primary expression before bool. Im stuck

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

        Hello @babygirl1248

        it's included in the M5Core2 begin() function:

        M5.begin(true, true, true, false, kMBusModeInput);
        

        two values; the first is the default:

        • kMBusModeOutput (=0): powered by USB or Battery
        • kMBusModeInput: (=1): powered by outside input

        Thanks
        Felix

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

        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