Closed patfelst closed 2 years ago
@patfelst Thank you for your interest. This project is still in its infancy, and I'm sure it will cause a lot of inconvenience, but I hope to make it good.
If you need an external 5V output, you need to call the following function.
M5.Power.setExtPower(true); // If you need external port 5V output.
I expect this will probably solve two of your questions.
There is currently no API available for controlling the power LED. We do not plan to add an LED control function to Axp, as this project needs to work the same way for all models. I will add the M5.Power.setPowerLED() function instead.
Thanks @lovyan03 yes enabling the 5V power output fixed the RGB LED and the I2C sesnor.
For I2C, calling M5.In_I2C.begin(I2C_NUM_0, 32, 33);
works, however I went back to Wire.begin(32, 33);
. Again this was 5V power issue.
I look forward to finding M5.Power.setPowerLED() function in a future relase - thanks.
I forgot to say that BtnX.pressedFor(1000)
is working as I expcted - good!
I will keep testing this library.
Actually, I have found an issue with BtnX.pressedFor()
, but I will raise that in a new issue for this.
All the Lcd functions I have tested are working ok (custom fonts, lines, rectangles).
How do I turn on the Vibration Motor (PWM:AXP_LDO3)?
Hi there @lovyan03 this looks very promising. Is it ready for people to start using?
I have been using @tobozo's ESP32-Chimera-Core because I want an up to date TFT_eSPI library for use with M5 Stack Core2. However the 3 touch buttons at the bottom of the LCD were not working properly (.pressedFor(1000) specifically) and tobozo told me about M5Unified.
I tried this library today and found the following issues:
M5.Axp.SetLed(0);
to turn the LED off.Wire.begin(32, 33);
. I then triedM5.Ex_I2C.begin(I2C_NUM_1, 32, 33);
but this also doesn't seem to work.I'd appreciate your thoughts / ideas on these issues, thank you.