begin pwmdriver class