What is this?
A program to display values from 4 of the BBC micro:bit V2’s onboard sensors (temperature, compass, light level and microphone.)
What is a BBC micro:bit?
An embedded system computer half the size of a credit card. Code must be written on a computer or a portable device before ‘flashing’ the program to the micro:bit via a USB cable or Bluetooth.
How was the program created?
I used the Microsoft MakeCode IDE (blocks of code similar to Scratch) in the iPhone micro:bit app.. However, other apps and languages can be used.
Note: I have used only the block editor so be aware that the underlying ‘written’ code may not be ordered ‘neatly’. (I originally thought the MicroPython code from the app would be saved here but only the javascript makes it to the repo; see the Main.ts file.)
Meta
Open this page at https://bazbt3.github.io/microbit-sensors/
Edit this project 
To edit this repository in MakeCode.
- open https://makecode.microbit.org/
- click on Import then click on Import URL
- paste https://github.com/bazbt3/microbit-sensors and click import
Blocks preview
This image shows the blocks code from the last commit in master. This image may take a few minutes to refresh.
Metadata (used for search, rendering)
- for PXT/microbit