This 2x AAA battery holder with switch and lid comes with a 2 pin JST connector and is compatible with the BBC micro:bit. It is fitted with 145mm colour coded power leads and a 2 pin JST connector at the end and features a slide on lid and an ON/OFF slide switch.
The moulded black ABS case has a detachable lid that slides into place and held with simple locking mechanism. The switch makes this battery case very convenient, meaning you do not have to take out the batteries or disconnect the battery holder when you want to power off.