Please enable JavaScript to use CodeHS

Florida Digital Discoveries in Society

Lesson 11.4 If/Else Statements

Description

In this lesson, students will connect a micro servo motor to their physical circuit and control its location using their device. They will learn to use conditionals to control components, along with the servoWritePin command.


Objective

Students will be able to:

  • Use conditionals to control the flow of their programs
  • Control the position of a servo motor by using the servoWritePin command in micro:bit programs