Micro:bit and dice simulator in python

0
This is a fairly simple dice throwing game for the micro:bit, in this example you shake the micro:bit and a dice image will be...

force sensitive resistor example

0
A force-sensing resistor is a material whose resistance changes when a force or pressure is applied. Force-sensing resistors consist of a conductive polymer, which changes...

Microbit and a buzzer examples

0
MicroPython on the BBC micro:bit comes with a powerful music and sound module. It’s very easy to generate bleeps and bloops from the device...

Image examples for the Micro:bit using Micropython

0
Here we show you how to create a custom image on the led matrix, we use the Mu editor - http://codewith.mu/ from microbit import * im =...

Micro:bit accelerometer Micropython example

0
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...

Microbit basic serial port example

0
In this example we will create a VB.net program that will read data from the serial port, in this case a Microbit connected to...

Random image on the Micro:bit using Micropython

0
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...

Microbit and an AD keypad

0
I purchased this module as part of a microcontroller kit, its an interesting little module as it has 16 buttons but with only 1 I/O...

Microbit RGB led examples

0
Here are another couple of RGB led examples for the Micro:bit Layout     Code The first example just shows some extra colour combinations from microbit import * while True: ...

Micro:bit compass example in micropython

0
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...

Microbit temperature in python

0
The BBC micro:bit does not have a dedicated temperature sensor. Instead, the temperature provided is actually the temperature of the silicon die on the...

Microbit and LDR example

0
A photoresistor (or light-dependent resistor, LDR, or photocell) is a light-controlled variable resistor. The resistance of a photoresistor decreases with increasing incident light intensity;...

Microbit and Neopixel examples

0
The neopixel module lets you use Neopixel (WS2812) individually addressable RGB LED strips with the Microbit. Note to use the neopixel module, you need...

Microbit built in tunes

0
For the purposes of education and entertainment, the module contains several example tunes that are expressed as Python lists. They can be used like...

MicroBit push button and display image example

0
A simple example using the 2 buttons (a and b), pressing them will display one of the built in images on th 5x5 LED...