Anyway, cleaned up the code, added support for multiple devices (each on a unique I2C address), and moved it to a separate function so you can much easier reuse it.
But then forgot to post it... Or are you waiting for the $40?
Anyway, cleaned up the code, added support for multiple devices (each on a unique I2C address), and moved it to a separate function so you can much easier reuse it.
But then forgot to post it... Or are you waiting for the $40?