Multiple LED patterns
📖 Scenario: You have a Raspberry Pi connected to three LEDs on pins 17, 27, and 22. You want to create different light patterns to make the LEDs blink in fun ways.
🎯 Goal: Build a program that controls three LEDs to blink in two different patterns: first all LEDs blink together, then they blink one by one in a sequence.
📋 What You'll Learn
Use the
gpiozero library to control LEDsCreate a list of LED objects for pins 17, 27, and 22
Write code to blink all LEDs together three times
Write code to blink LEDs one by one in sequence three times
Print messages to show which pattern is running
💡 Why This Matters
🌍 Real World
Controlling LEDs on a Raspberry Pi is a common way to learn about hardware programming and create visual signals or indicators.
💼 Career
Understanding how to control hardware components like LEDs is useful for jobs in embedded systems, IoT development, and electronics prototyping.
Progress0 / 4 steps