setDutyCycle and read