Re: Driver for NXP PCA9685 LED/PWM (Servo) controller
It's fine, I deleted it and split this one off from the other thread.
Other than being able to do I2C, not a whole lot. The names are very different and you don't have to deal with the stop and start conditions yourself. The firmware takes care of that stuff for you.
Yeah, almost. The first byte is the actual size of the transmission, 3 bytes in this case (address, register and value to be sent to register).
This code looks fine to me. Please note that for the 3.0 beta 1 driver suite, I've changed some of the internal I2C functions, but it would be super easy to modify, you'll see.
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page