adapting servo and pwm modes to work in nanoseconds

pwm range is no longer in value between 0 and 255, but in float value
between 0 and 100 that represents the duty cycle percentual