Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avt613/simple-rpi-power-light
Simple script to switch on light when raspberry pi switches on
https://github.com/avt613/simple-rpi-power-light
led raspberry-pi raspberry-pi-gpio raspberrypi rpi
Last synced: 6 days ago
JSON representation
Simple script to switch on light when raspberry pi switches on
- Host: GitHub
- URL: https://github.com/avt613/simple-rpi-power-light
- Owner: avt613
- Created: 2020-07-17T10:07:01.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-17T10:30:15.000Z (over 4 years ago)
- Last Synced: 2024-11-05T12:13:01.394Z (about 2 months ago)
- Topics: led, raspberry-pi, raspberry-pi-gpio, raspberrypi, rpi
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple-rpi-power-light
Simple script to switch on four LED's when raspberry pi switches on, to let me know when it is powered up.## My Setup
I have 4 LED's, each with their anodes connected to one of the 3v3 supply pins and their cathodes conected to BCM pins 4, 17, 18, 27 respectively. If you have a different setup you will need to change `pwr-led.py` accordingly.## Installation
### Clone
- Clone this repo to your local machine using `git clone https://github.com/avt613/Simple-rpi-power-light.git`
### Add to startup
- Add script to startup by edit '/etc/rc.local' eg. `sudo nano /etc/rc.local`
- insert `python /home/pi/Simple-rpi-power-light/pwr-led.py &` just before `exit 0`
- If your username is not `pi` or you you did not clone the repo to your home directory then you will need to change the path in the previous line