Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
I can't configure shutdown via button B. With M5stickC I was able to do this with this command: void btnBClick() { M5.Axp.PowerOff(); } but it doesn't work with M5StickCplus2.
Hello @pmkopter
try StickCP2.Power.powerOff();. See example here.
StickCP2.Power.powerOff();
Thanks Felix
Thank you. your help was very precious. now it works great.