Go to advanced search

by paveliche
Wed Dec 02, 2015 5:05 am
Forum: Python
Topic: GPIO doesn't work with nohup
Replies: 2
Views: 611

GPIO doesn't work with nohup

Hi, All! I'm trying to run script which moving stepper motor. Everything is ok, when I run script via ssh terminal. But when I run script with "sudo nohup script.py" or by adding to /etc/rc.local nothing happens. Could you help me? My function: def motor_run(angle): GPIO.setmode(GPIO.BCM) for pin in...
by paveliche
Sat May 16, 2015 10:26 pm
Forum: Python
Topic: Kill Pygame process by another script
Replies: 0
Views: 687

Kill Pygame process by another script

Hi all I'm trying to make a script which start / stop another script with button. Second script ia pygame screen with graphics. The problem: after killing process screen of my second process freezing. This is my script with button: import RPi.GPIO as GPIO import time import subprocess, os import sig...

Go to advanced search