Skip to content

Instantly share code, notes, and snippets.

View StephenChamberlain's full-sized avatar

Stephen Chamberlain StephenChamberlain

View GitHub Profile
@StephenChamberlain
StephenChamberlain / traffic-lights.py
Created March 4, 2023 07:55
Python script to control LEDs via RaspberryPi
import RPi.GPIO as GPIO
import time
# ---------------------------------
gpioPinRed = 4
gpioPinYellow = 17
gpioPinGreen = 22
delay = 1