I have the IoT RedBoard - ESP32 and a LiPo battery. I would like to debug code while the board is powered by the battery. The obvious choice (and the one that most of the examples use) is to send debug output to the serial port. Of course, a normal USB cable connected to the USB-C connector provides power to the board and charges the battery.
What I need is a USB cable that has the data pins (and ground) always connected and a switch that interrupts the power only.
Is there a product I can buy with these features?
I have already built an extension cable for the battery that includes a switch so I don’t have to wrestle with the battery connector on the RedBoard itself. I think this would be a useful product to make available as well.