🤖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?

    General
    2
    2
    2.6k
    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
      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
        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
        • First post
          Last post