m5stack / M5Unified

Unified library for M5Stack series
MIT License
328 stars 58 forks source link

M5 Core2 v1.1 power LED #106

Open mjau-scot opened 8 months ago

mjau-scot commented 8 months ago

It appears to be impossible to turn off the power LED on v1.1 of the Core2. M5.Power.setLed(0) works fine on v1.0 of Core2, but it doesn't seem to work on v1.1.

It's definitely possible to turn off the LED on v1.1, I've successfully switched it off in another application that uses the latest version of M5Core2.h using M5.Axp.SetLed(false).

Would it be possible to extend this functionality to M5Unified?

Thanks.

mdxs commented 7 months ago

There seems to be a difference between v1.0 and v1.1 of Core2 according to #102 regarding the Power LED:

... due to the difference in specifications between AXP192 and AXP2101

While #86 indicates that the code implementation for AXP2101 is not yet complete.