my simple python code :
Code: Select all
#!/usr/bin/env python
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setup(25, GPIO.OUT)
p = GPIO.PWM(25,200)
p.start(50)
If I execute script like this :
Code: Select all
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setup(25, GPIO.OUT)
GPIO.output(25, True)
My question is how to run PWM "forever" without any loops like while ... ? Thanks for any response !
