t-beam 1.1 ACP192 power off?
-
I am using these t-beams and holding the power button just powers off everything but keeps flashing a blue light until the battery is dead.
I'm using the example code LoRaSender and it does the same.
But the Meshtastic, when loaded powers off completely when the power button is held.
I can't find any commands in XPowersAXP192 to power it off completely in C++ for Arduino IDE.
Thoughts?https://github.com/Xinyuan-LilyGO/LilyGo-LoRa-Series/tree/master/examples/ArduinoLoRa
-
int AXP20X_Class::shutdown() { uint8_t val; if (!_init) return AXP_NOT_INIT; _readByte(AXP202_OFF_CTL, 1, &val); val |= (1 << 7); _writeByte(AXP202_OFF_CTL, 1, &val); return AXP_PASS; }