Skip to content

Emotion badge

Lesson 3 of 6

MakeCode

7-11 yrs

Start learning about inputs and outputs using buttons and icons on the display.

Key learning:

  • Code the micro:bit to make different outputs happen depending on different inputs. (This is a very simple kind of selection. We look at selection in more detail in lesson 5, Nightlight.)
  • Understand that inputs and outputs involve the flow of data in and out of computers.
  • Apply this knowledge using the micro:bit’s button inputs and display output.

Computer systems:

Input/output

Programming:

Selection

Lesson plan preview

Slides preview

Student handouts

Completed lesson code

This provides an example of the code created during this lesson.

You may also be interested in

Unit of work

Nature art

This unit of four lessons is suitable for students aged 7-8 years. They create nature representations, firstly using art materials and are introduced to computational thinking and programming the LEDs on the BBC micro:bit. 

Make it: code it

Name badge

Turn your micro:bit into an animated name badge