Adjusted the pre-scale value based on the PCA data sheet formula.
Added a 500uS delay after setting the SLEEP bit. PWM timings are not guaranteed if the register is accessed within this window.
Added motor number sanity checks to ensure only motors 1 - 4 can be passed to the method.
Adjusted the pre-scale value based on the PCA data sheet formula. Added a 500uS delay after setting the SLEEP bit. PWM timings are not guaranteed if the register is accessed within this window. Added motor number sanity checks to ensure only motors 1 - 4 can be passed to the method.