Navigation

    LILYGO

    • Register
    • Login
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    t-beam 1.1 ACP192 power off?

    Technical Discussion
    2
    2
    169
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      Khannah2 last edited by Khannah2

      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

      1 Reply Last reply Reply Quote 0
      • D
        ddv2005 last edited by

        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;
        }
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB | Contributors