File: blink-led.py
Demo: Video
Diagram: Source file
Description: Blinks an LED a set number of times for a given duration.
File: button-led.py
Demo: Video
Diagram: Source file
Description: LED controlled by a button. Button held, LED on. Button not pressed, LED off.
File: switch-led.py
Demo: Video
Diagram: This one uses the same diagram as the button LED.
Description: LED controlled by a button acting as a switch. Press the button, the LED turns off (if it is on) or on (if it is off).
File: 8-led.py
Demo: Video
Diagram: Source file
Description: 8 LEDs blinking left to right.
Files: 8-led-gui.py, led.ui
Demo: Video
Diagram: This one uses the same diagram as the regular 8 LEDs
Description: 8 LEDs now controlled by checkboxes in a GUI. GUI built with pygubu.
Screenshot:
File: rgb-led.py
Demo: Video
Diagram: Source file
Description: A single RGB LED that blinks red/green/blue/white 10 times, then exits.
File: random-color.py
Demo: Video
Diagram: This one uses the same diagram as the one RGB LED
Description: Random colors fading one to the next on one RGB LED.
File: random-color-2.py
Demo: Same as above.
Diagram: This one uses the same diagram as the one RGB LED
Description: Random colors fading one to the next on one RGB LED, controlled by functions.
Diagrams made using Fritzing.