Micro:bit compass example in micropython
The micro:bit also has a compass (magnetometer) The compass has to be calibrated before it can give accurate readings. Calibration involves moving a dot to make a circle on the…
The micro:bit also has a compass (magnetometer) The compass has to be calibrated before it can give accurate readings. Calibration involves moving a dot to make a circle on the…
The micro:bit has an accelerometer on board, you can see this in the picture below When you flash the program, you should see a reading of the accelerometer x axis being…
The Image class also has the following built-in instances of itself included as its attributes (the attribute names indicate what the image represents). In this example we will randomly display…
Here we show you how to create a custom image on the led matrix, we use the Mu editor [codesyntax lang=”python”] from microbit import * im = Image(‘99999:90009:90009:90009:99999:’) display.show(im) [/codesyntax]…