Please enable JavaScript to use CodeHS

Florida Digital Discoveries in Society

Program Control with micro:bit

Students combine control structures, such as if/else statements and loops, with the micro:bit built-in and external sensors to write programs that react to the outside world.

Lessons

11.1 For Loops

  • For Loops
  • For Loops
  • Light Middle Row with a For Loop
  • Dimming LED
  • Exploration: Playing Music with micro:bit
  • +4 more

11.2 While Loops

  • While Loops
  • While Loops
  • Light Middle Column with a While Loop
  • Alternating LED until Button Press
  • Exploration: Using Buttons to Control Code
  • +3 more

11.3 Operators

  • Arithmetic, Comparison, and Logical Operators
  • Arithmetic, Comparison, and Logical Operators
  • Using Arithmetic Operators
  • Using Comparison Operators
  • Using Logical Operators
  • +11 more

11.4 If/Else Statements

  • If/Else Statements
  • If/Else Statements
  • If/Else with 'count'
  • If/If/If with 'count'
  • LED Position with a Variable
  • +7 more

11.5 Functions

  • Functions
  • Functions
  • Using Functions
  • Using Functions with Parameters
  • Combining Control Structures
  • +6 more

11.6 Program Control with micro:bit Quiz

  • Program Control with micro:bit Unit Quiz

Courses that include this module