Digital Output
Lesson 1 of 1
  1. 1
    To communicate with the outside world, the Raspberry Pi has a component called the GPIO, which stands for General Purpose Input Output. The GPIO is a set of 40 pins that are located on the si…
  2. 2
    For this lesson, we will be working with circuits that control the state of one or more LEDs. The following schematic is an LED circuit with a pushbutton, where an open button means the LED state i…
  3. 3
    A pin on the Raspberry Pi can be used as an output, meaning that it can “send” an electrical signal to the outside world. When used as an output, a GPIO pin on the Raspberry Pi is capable of only…
  4. 4
    To use the GPIO pins as output, we need to use the Python module gpiozero. This library is already installed in the workspace so you can use it immediately. If you own a Raspberry Pi, the gpiozer…
  5. 5
    In this exercise, we will use Python to light up the LED in the circuit we built in the previous exercise. You will be working with Python functions in this exercise. If you are not familiar with …
  6. 6
    Good work getting to this point. We can now use what we’ve learned to light up a few LEDs! Since each LED instance is attached to a single GPIO pin, we can now create multiple instances each with …
  7. 7
    Great job on making this far in the lesson on digital output! Let’s summarize everything we just learned. - The Raspberry Pi is capable of communicating with the outside world via its GPIO pins. -…

How you'll master it

Stress-test your knowledge with quizzes that help commit syntax to memory