Hello, you can refer here: How_to_Use_GPIO16_to_control_battery