microbotsio / CodeCell

A penny-sized board that can help you miniaturize DIY Robots, Wearables & other IoT projects!! It includes an Arduino friendly ESP32-C3 Wifi & BLE module, USBC LiPo Battery Charger with onboard Battery Connector, Light Sensor, and an optional Motion Sensor
Apache License 2.0
34 stars 6 forks source link

When connected to USB with battery connected, application does not run #3

Open divbell opened 1 month ago

divbell commented 1 month ago

I've noticed that when I have the battery connected and the USB connected, the application shuts down and it goes into battery charging mode and never seems to return to the application, even when the battery is apparently charged (or charged enough).

Is there a way to keep the application running while connected to USB with a battery connected, and use excess power to top-off the battery?

microbotsio commented 3 weeks ago

This can be done, however the Run function currently put the device in sleep mode while the battery is connected and charging via usb, turning off all gpio pins. We will consider adding a way to disable this in the next release