cycle-pwm3.py: fix example
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
@@ -25,9 +25,9 @@
|
|||||||
import mraa
|
import mraa
|
||||||
import time
|
import time
|
||||||
|
|
||||||
x = mraa.PWM(0,3)
|
x = mraa.Pwm(0,3)
|
||||||
x.enable(1);
|
|
||||||
x.period_us(20)
|
x.period_us(20)
|
||||||
|
x.enable(1)
|
||||||
value= 0.0
|
value= 0.0
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
|
|||||||
Reference in New Issue
Block a user