cycle-pwm3.py: fix example
authorBrendan Le Foll <brendan.le.foll@intel.com>
Thu, 24 Jul 2014 09:10:04 +0000 (10:10 +0100)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Thu, 24 Jul 2014 09:10:04 +0000 (10:10 +0100)
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
examples/python/cycle-pwm3.py

index 538f697..4292240 100644 (file)
@@ -25,9 +25,9 @@
 import mraa
 import time
 
-x = mraa.PWM(0,3)
-x.enable(1);
+x = mraa.Pwm(0,3)
 x.period_us(20)
+x.enable(1)
 value= 0.0
 
 while True: