Activity 05.01: Fixing A Button Checker

Goal: Fill in the blanks and fix the bugs so that the program shows you both button A & B states.

Success Criteria:

  • The micro:bit runs the program with no errors
  • You press button A and the number associated with button A changes from 0 to 1
  • You press button B and the number associated with button B changes from 0 to 1
  • The program doesn’t end until you press “stop”

Task:

  • Look at this activity to remind yourself how a button checker works
  • Use the documentation
  • Fill in the blanks below
  • Fix all the bugs
Scroll to Top