I2C library for Trinket and Gemma, adapted from BroHogan's code on Arduino Playground