Home Blog Page 8

Microbit RGB led examples

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

Microbit and LDR example

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 temperature in python

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 Edge Connector Breakout Board

I like the Micro:Bit, its a nice little compact board with plenty of features with a couple of development options such as Python, C++...

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

Micro:bit accelerometer Micropython example

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

Random image on the Micro:bit using Micropython

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

Image examples for the Micro:bit using Micropython

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

LED pattern using the Microsoft Block Editor for Micro:Bit

Go to the micro:bit web site and follow the hyperlink to Create Code. Choose the Microsoft Block Editor and make a New Project. Look in...

MicroBit push button and display image example

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