Skip to content

Lesson 2

Display numbers on the micro:bit. From 9 to 0

lesson_2-0.png

Blocks

  • showLeds - Draws an image on the LED screen.
  • pause - Pause for the specified time in milliseconds.

Activity

Let’s learn how to show numbers on the LED screen.

Steps

  • We will use show number to draw an number on the LED screen.
  • Add 8

Result

lesson_2.1.png


Challenge 1

Create simple animation that will count down from 9 to 0

Steps

  • Add new blocks show leds from 9 to 0

Result

lesson_2.2.png


Challenge 2

Play sound at the end of animation

Steps

  • Add play sound block at the end

Result

lesson_2.3.png