Yes, that sounds good - my only worry would be that if you use VBAT, the charger will be powered when you're powered from the Battery too, so it may flatten the battery.
Instead, you might be better going directly from USB. There isn't a pin for that, so the best bet would be to solder to the large diode near the USB connector.
The only other suggestion to make the trickle charge safer is to add a 4.2v zener diode across the battery. That way, you can be sure that the battery won't be over-volted. All you'd have to do is solder an SMD zener across the JST connector, and then resistor for the trickly charge.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Yes, that sounds good - my only worry would be that if you use VBAT, the charger will be powered when you're powered from the Battery too, so it may flatten the battery.
Instead, you might be better going directly from USB. There isn't a pin for that, so the best bet would be to solder to the large diode near the USB connector.
The only other suggestion to make the trickle charge safer is to add a 4.2v zener diode across the battery. That way, you can be sure that the battery won't be over-volted. All you'd have to do is solder an SMD zener across the JST connector, and then resistor for the trickly charge.