In your pin connections, you write:
VBAT -- red -- PIN4 GND
GND -- grey -- PIN5 +5V (DC).
Should it not be:
VBAT -- red -- PIN5 +5V (DC)
GND -- grey -- PIN4 GND.
as you has drawn it.
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.
In your pin connections, you write:
VBAT -- red -- PIN4 GND
GND -- grey -- PIN5 +5V (DC).
Should it not be:
VBAT -- red -- PIN5 +5V (DC)
GND -- grey -- PIN4 GND.
as you has drawn it.