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.
  • A GPIO pin, when configured in output mode, can only have two states: HIGH (3.3 Volts) or LOW (0 Volts)
  • An LED can be connected to the GPIO pin and can be controlled to light up or turn off.
  • An LED is connected to a GPIO pin by connecting it in series with a resistor.
  • The LED() class is used to control an LED connected to the GPIO.

Well done!


The circuit from the last exercise is in the workspace again.

There is a for loop around the code you wrote the last exercise and it creates a chases effect with the LEDs. If you want to learn more about for loops in Python feel free to reference the Codecademy Docs for loops.

Try out new code with the circuit in the workspace. Have fun!

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?