Electron E series - LiPo terminal voltage limitations

The full code is here, but omit the line to disable the BATFET. You need to leave the BATFET enabled, otherwise you can't power from the LiPo battery connector. The other lines of code will prevent charging and prevent the LED from flickering or blinking.