in adafruit pwm drive created funtion to sleep/restart