XIAO ESP32-S3 Read built-in LED state

Hello, here is a blog you can reference:XIAO_BLE_Sense(mbed 2.7.2) battery charge and voltage monitor, analogRead(P0_31) does not work