Go to advanced search

by RubiksCube
Tue Jan 13, 2015 6:58 pm
Forum: Python
Topic: Status LED over GPIO tied to process
Replies: 7
Views: 3526

Re: Status LED over GPIO tied to process

You are right. Just goes to show that I have lot to learn. Cleaned the code up a little and added a 10 second sleep. #!/usr/bin/python import RPi.GPIO as GPIO import os import subprocess import time GPIO.setwarnings(False) GPIO.setmode(GPIO.BCM) GPIO.setup(17, GPIO.OUT)#Sets the GPIO pin to be an ou...
by RubiksCube
Mon Jan 12, 2015 2:28 pm
Forum: Python
Topic: Status LED over GPIO tied to process
Replies: 7
Views: 3526

Re: Status LED over GPIO tied to process

Thank you for the answer elParaguayo. that worked for me with a little bit of tweaking I ended up doing it like this: #!/usr/bin/python import RPi.GPIO as GPIO import os import subprocess GPIO.setwarnings(False) GPIO.setmode(GPIO.BCM) GPIO.setup(17, GPIO.OUT)#Sets the GPIO pin to be an output pin GP...
by RubiksCube
Sun Jan 11, 2015 2:33 pm
Forum: Python
Topic: Status LED over GPIO tied to process
Replies: 7
Views: 3526

Status LED over GPIO tied to process

Hi In connection to a little project I'm making based on the RuneAudio distro (runs on a stripped version of Arch). I want to have a LED turn on when Media Player Daemon is running. I'm a total beginner with programming in general so any help here will be aprciated. I started poking around the net f...

Go to advanced search