Please enable JavaScript to use CodeHS

New Mexico Tech Apps and Coding

Lesson 3.4 Variables

Description

In this lesson, students will build their first physical circuit using their micro:bit devices. They will learn to use variables to control components, along with the analogWritePin and digitalWritePin commands.


Objective

Students will be able to:

  • Articulate what a variable is and why they are used
  • Assign and utilize variable in their programs
  • Create a simple circuit using micro:bit pins
  • Control an external LED by using the analogWritePin and digitalWritePin commands in micro:bit programs