{blog.withcode.uk}

Free computing teaching and learning resources.

Python microbit basics: buttons and touch pins

This beginners tutorial talks you through how to write python programs for a micro:bit that can respond when you press a button or touch one of the input pins along the bottom of the device. The code below turns a micro:bit into a counter: press button A to count down, button B to count up and

Read More…

Python microbit basics: How to display images

This beginners tutorial talks you through how to get started displaying and manipulating images on a BBC micro:bit.   Run the python code below in the micro:bit simulator to see three different ways of showing an image: The easiest way to display an image is to use a built in image such as Image.HAPPY

Read More…

Python microbit basics: How to display text

The screen on a micro:bit only has 25 pixels in a grid of 5×5 so it can only display one character at a time.┬áThere are two main ways to display text on a micro:bit in python: you can scroll the characters from right to left or display a whole character one after the other:

%d bloggers like this: