Navigation

    LILYGO

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

    how to detect by software if I am connected by usb or I am using the battery?

    Product information
    2
    2
    218
    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.
    • H
      hosky last edited by

      I would like to check if I am charging the T-display-s3 or I am using the battery only. I know that led red is on if I am charging, but I would like to check it by software. It is possible?

      Kind regards.

      teastain2 1 Reply Last reply Reply Quote 0
      • teastain2
        teastain2 @hosky last edited by

        @hosky well, you could use the esp32 built in ADC to read pin 4 bat volt, or wire the 5V pin to a voltage divider and then to a GPIO, such as 16 and digitalRead it.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB | Contributors