MakeCode code - bitty blue

micro:bit code

The following makecode project will produce a hex file that can be used with Bitty Blue. Note that the magnetometer / digital compass will be calibrated every time you start or reset your micro:bit. This could become tiresome so feel free to move that code to a button handler block so you can initiate magnetometer calibration on demand. If you do not calibrate the magnetometer though, it will not work and so features like the Bitty Blue compass and rotation around the z-axis in the PolySquiggle feature will not work.