You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • I think there's a bit of confusion about the wiring of the 4 pinned switch? The two pins at the top of the symbol are just shorted together, and the two pins at the bottom are as well. When pressed, the switch shorts top to bottom.

    As @AntiCat says, when the button is pressed you're shorting 3.3v to GND, which is what is causing the reset. In normal use, that button doesn't actually reset the device (it's usable from your code), it just enters bootloader mode if you power the device on with the button held down.

    You don't need a pullup/pulldown resistor in this case though because Espruino uses the chip's internal resistor.

    So basically all you need to do is remove the connection from the button to GND (top left), and it should work fine. If you've got prototype PCBs with this on you should be able to just cut the trace with a knife.


Avatar for Gordon @Gordon started