Closed webstep-pl closed 10 months ago
Now we have power control functions added to the AXP2101. https://github.com/m5stack/M5CoreS3/blob/fdbb037bf9ea65569542c37be23607ecc2a57cd8/src/AXP2101.h#L107-L111
Hi can you please tell me how to call powerModeSet, I have a DMX module and when I used 12v in the display wont turn on, keeps power cycling. thanks
Hi can you please tell me how to call powerModeSet, I have a DMX module and when I used 12v in the display wont turn on, keeps power cycling. thanks
eg: powerModeSet(mode)
mode: POWER_MODE_USB_IN_BUS_IN, POWER_MODE_USB_IN_BUS_OUT, POWER_MODE_USB_OUT_BUS_IN, POWER_MODE_USB_OUT_BUS_OUT,
In the URL https://docs.m5stack.com/en/core/CoreS3 there is a graphic representing Power Management options: USB IN, BUS IN => BUS_OUT_EN = 0, USB_OTG_EN = 0 USB IN, BUS OUT => BUS_OUT_EN = 1, USB_OTG_EN = 0 USB OUT, BUS IN => BUS_OUT_EN = 0, USB_OTG_EN = 1 USB IN, BUS OUT => BUS_OUT_EN = 1, USB_OTG_EN = 1
I would like to control it within the app, but there is no factory test released for CoreS3 which I would look into + no example provided for that.
Apart from publishing an example to the community, could you please also share an inline code how to make it? M5.Axp.something here
I have tested many things by looking into AXP2101.h and reusing public methods, but no luck so far. Help would be very appreciated!