To launch the Python Console type:
# python Python 2.7.3 (default, Apr 3 2013, 21:37:23) [GCC 4.7.3 20130205 (prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>>
>>> import Adafruit_BBIO.PWM as PWM
>>> PWM.start("P8_13", 95.0, 60) >>> PWM.set_duty_cycle("P8_13", 97.0) >>> PWM.stop("P8_13") >>> PWM.cleanup()
Here's the same code but with the inverse parameter set:
>>> PWM.start("P8_13", 95.0, 60, 1) >>> PWM.set_duty_cycle("P8_13", 97.0) >>> PWM.stop("P8_13") >>> PWM.cleanup()