bazbt3 / microbit-sensors

A MakeCode project to display values from the BBC micro:bit’s onboard sensors (temperature, compass, light level and microphone.)

Home Page:https://bazbt3.github.io/microbit-sensors/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 Build status badge

To edit this repository in MakeCode.

Blocks preview

This image shows the blocks code from the last commit in master. This image may take a few minutes to refresh.

A rendered view of the blocks

Metadata (used for search, rendering)

  • for PXT/microbit
<script src="https://makecode.com/gh-pages-embed.js"></script><script>makeCodeRender("{{ site.makecode.home_url }}", "{{ site.github.owner_name }}/{{ site.github.repository_name }}");</script>

About

A MakeCode project to display values from the BBC micro:bit’s onboard sensors (temperature, compass, light level and microphone.)

https://bazbt3.github.io/microbit-sensors/

License:MIT License


Languages

Language:TypeScript 49.9%Language:Python 42.6%Language:Ruby 3.9%Language:Makefile 3.7%