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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
runninglight-0.1.0.tar.gz
(1.9 kB
view details)
File details
Details for the file runninglight-0.1.0.tar.gz
.
File metadata
- Download URL: runninglight-0.1.0.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05ffa3e74deb984df6d4abd30c64003be06bca27d5ceb575af3885fbacd988a4 |
|
MD5 | 6f7b9d75c1486507fb76d70fc5cafdcc |
|
BLAKE2b-256 | eb7c2ef3b54df049a7f4c595a9f47ce501fb9d3a75ce23034b63b65f02435402 |