Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.
/ python-pi Public archive

Python programs for the Raspberry Pi using RPi.GPIO and a basic breadboard.

Notifications You must be signed in to change notification settings

some-natalie/python-pi

Repository files navigation

python-pi

Files

1 - Blinking LED

File: blink-led.py

Demo: Video

Diagram: Source file

Diagram

Description: Blinks an LED a set number of times for a given duration.

2 - Button LED

File: button-led.py

Demo: Video

Diagram: Source file

Diagram

Description: LED controlled by a button. Button held, LED on. Button not pressed, LED off.

3 - Switch LED

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).

4 - 8 Blinking LEDs

File: 8-led.py

Demo: Video

Diagram: Source file

Diagram

Description: 8 LEDs blinking left to right.

5 - 8 LEDs with a GUI

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:

GUI Picture of breadboard

6 - One RGB LED

File: rgb-led.py

Demo: Video

Diagram: Source file

Diagram

Description: A single RGB LED that blinks red/green/blue/white 10 times, then exits.

7 - Random colors on one RGB LED

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.

8 - Random colors on one RGB LED (now with functions)

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.

About

Python programs for the Raspberry Pi using RPi.GPIO and a basic breadboard.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages