1) You are certain the battery terminals are connected appropriately; [plus - BAT_IN] [minus - GND]
2) The battery is fully charged and has been tested on a separate circuit under load.
3) The USB cable has been removed from the Pico.
4) What is the measured volatage at the positive terminal/BAT_IN of the 9v after it is connected?
"It is the answers, not the questions, that are embarrassing." Helen Suzman
5) Is 'save()' being typed before dis-connecting the USB cable and applying the 9v battery?
6) If the battery is removed and USB cable re-applied does Pico execute the LED1 routine as expected?
7) Are the battery wires soldered in place or using a breadboard?
Posting an image of your connections/layout would assist greatly.
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.
@user80719,
I'll start with the obvious,
1) You are certain the battery terminals are connected appropriately; [plus - BAT_IN] [minus - GND]
2) The battery is fully charged and has been tested on a separate circuit under load.
3) The USB cable has been removed from the Pico.
4) What is the measured volatage at the positive terminal/BAT_IN of the 9v after it is connected?
5) Is 'save()' being typed before dis-connecting the USB cable and applying the 9v battery?
6) If the battery is removed and USB cable re-applied does Pico execute the LED1 routine as expected?
7) Are the battery wires soldered in place or using a breadboard?
Posting an image of your connections/layout would assist greatly.