Skip to main content

Package for controlling an LED running light that is hooked up to a Raspberry Pi

Project description

Running Light Control

A light-weight package for controlling a raspberry-pi connected LED running light.

Example code:

import RPi.GPIO as GPIO
import runninglight
import time


#Pin for the light
MPIN = 3

#set up
GPIO.setmode(GPIO.BCM)
GPIO.setup(MPIN, GPIO.OUT)

#create
rlm = runninglight.runninglightmanager(MPIN)

#run
rlm.set_mode(runninglight.light_mode.doubleblink_1sec)
rlm.start()
print("Started!")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for runninglight, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size runninglight-0.1.0.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page