https://github.com/timhanewich/runninglightcontrol
https://github.com/timhanewich/runninglightcontrol
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/timhanewich/runninglightcontrol
- Owner: TimHanewich
- License: mit
- Created: 2020-07-09T19:34:20.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-09T20:07:46.000Z (almost 6 years ago)
- Last Synced: 2025-02-23T00:03:34.590Z (over 1 year ago)
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
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!")