diff --git a/examples/python/cycle-pwm3.py b/examples/python/cycle-pwm3.py index 4292240..8f2b636 100644 --- a/examples/python/cycle-pwm3.py +++ b/examples/python/cycle-pwm3.py @@ -25,14 +25,14 @@ import mraa import time -x = mraa.Pwm(0,3) -x.period_us(20) -x.enable(1) +x = mraa.Pwm(3) +x.period_us(700) +x.enable(True) value= 0.0 while True: x.write(value) - time.sleep(0.2) - value = value +0.01 + time.sleep(0.05) + value = value + 0.01 if value >= 1: value = 0.0