Please enable JavaScript to use CodeHS

Introduction to Physical Computing with Arduino

Lesson 2.2 If/Else Statements




These are all the activities included in the lesson

2.2.1 If/Else Statements
2.2.2 If/Else Statements
2.2.3 LED Brightness with Potentiometer
2.2.4 Stoplight LEDs
2.2.5 LED Brightness using Buttons
2.2.6 Exploration: Using Buttons to Control Code
2.2.7 Exploration 2.2 Follow-up
2.2.8 Servo Position by Button Press
2.2.9 Servo Sweep with Reset