Introduction: Micro:bit, Let's Try Making an Image !

Show your emotions using micro:bit. Try something crazy.

Step 1: Micro:bit -

The Micro Bit (also referred to as BBC Micro Bit, stylised as micro:bit) is an ARM-based embedded systemdesigned by the BBCfor use in computer education in the UK. The board measures 4 cm × 5 cm and has an ARM Cortex-M0processor, accelerometer and magnetometer sensors, Bluetooth and USB connectivity, a display consisting of 25 LEDs, two programmable buttons, and can be powered by either USB or an external battery pack.The device inputs and outputs are through five ring connectors that form part of a larger 23-pin edge connector.

Step 2: Pinouts :

Step 3: Steps :

Steps:

  • Plug in the micro:bit
  • Navigate to microbit.co.uk/app
  • Create a new micro python project.

For almost every script we create with micro Python for the microbit we need to import micro:bit library

  • Include the library (write from microbit import *)
  • Then write while True: loop statement

Instead of scrolling some text we'll use the show method which is also a part of the display object to draw an image on the LED array. Micro Python has several ready made images. These images are stored within the image object which is part of micro:bit library that we imported at the top of the code.

To access them we need to type image with a capital 'I' followed and then the Image we want. In this we will use Happy :) in all caps which corresponds to a happy face.

  • Type display.show(Image.HAPPY)
  • Download the hex file

Copy it to the micro bit.

When you run code you should see a happy face drawn into the LED's. If you would like to try out some of the other images take a look at the image attributes in the microbit.micropython documentation. For example you can draw sad, angry, confused, meh faces along with other objects like triangles, diamonds, houses and targets.

Try it out !

See if you can have the micro draw a House..

Step 4: To Get Micro:bit

You can get Microbit by Clicking here .