public example from Adafruit_BBIO PWM