m5stack / M5StickC

M5StickC Arduino Library
MIT License
477 stars 222 forks source link

No way to power off external peripherials #157

Closed smily77 closed 1 year ago

smily77 commented 1 year ago

Describe the bug

The external power on the groove connector remains when PowerOff() or deepSleep() or what ever there is no possibility to switch it of. Same issue was recently reported for the Core2 library (here: https://github.com/m5stack/M5Core2/issues/99) There it was solved (By the way isn't an issue with the M5StickC-plus library)

To reproduce

In any environment this is not possible

Expected behavior

Switch off the power at the groove connector when is PowerOff() is called or alternative function like PowerOffPeripherials()

Screenshots

No response

Environment

Additional context

No response

Issue checklist

Tinyu-Zhao commented 1 year ago

Thanks for the suggestion, I have added the function to control Port. https://github.com/m5stack/M5StickC/commit/0527606d9e56c956ab17b278c25e3d07d7664f5e

M95D commented 1 year ago

You didn't change the version. This modification is not downloaded by Arduino IDE.

Tinyu-Zhao commented 1 year ago

You didn't change the version. This modification is not downloaded by Arduino IDE.

Released.

https://github.com/m5stack/M5StickC/releases/tag/0.2.9

M95D commented 1 year ago

That was quick! Thanks.