Adapted ADS1115 driver from i2cdevlib.com so that it compiles