SparkFun gator:bit v2 Hookup Guide
To program the micro:bit for the following examples, simply connect it to your computer with a USB micro-B cable. You will drag and drop the downloaded .hex files into the disc drive that the micro:bit emulates.
To power gator:bit for the following examples, you can either power everything through the gator:bit or micro:bit. On the gator:bit, you can use the barrel jack or VIN and GND pads. On the micro:bit, you can use the JST battery terminal or USB micro-B connector.