You might be interested in some of these changes.
Updated to work with Arduino v 1.0. Pulled some pca9685 related chang…
…es from http://neuroelec.googlecode.com/svn/trunk/libraries/Arduino%201.0/HP_RGB_LED_Shield_V2/HPRGB2/
fixed getPWMFrequency algorithm, code cleanup
Code looks good but I was using the simpler and I think better I2C library https://github.com/brunnels/I2C instead of the wire library that ships with arduino. Still works for me with 1.0.3.