Skip navigation
Oak National Academy Logo

Lesson overview:Sensing inputs

  • In this lesson, we will use the buttons to change the value of a variable using selection. We will then develop our programs to update the variable by using the micro:bit's accelerometer which senses motion. Finally, we will learn that a variable can be displayed after it is updated or in response to an input.
  • In this lesson, we will use the buttons to change the value of a variable using selection. We will then develop our programs to update the variable by using the micro:bit's accelerometer which senses motion. Finally, we will learn that a variable can be displayed after it is updated or in response to an input.