0Pricing
Arduino & IoT Academy · Lesson

digitalWrite HIGH & LOW

Turn a pin on and off to light an LED.

Now Make It Glow

Your pin is set to OUTPUT, but it is still silent. To actually switch it on or off, you use one new command: digitalWrite. ✨

Two States Only

A digital pin lives in just two states. It is either fully on, called HIGH, or fully off, called LOW. There is nothing in between.

All lessons in this course

  1. pinMode and OUTPUT
  2. digitalWrite HIGH & LOW
  3. delay() and Blink Timing
  4. Wire an External LED Safely
← Back to Arduino & IoT Academy