Unluckily, it seems that the hardware or libraries are sufficiently different to not want to simply run their example code as is. I did change the
to Ox29 because I know the 91 has a fixed i2c address at 0x29.const TSL2561_ADDR_FLOAT = 0x39; // ADDR pin floating
It seems like the problem is that the 61 has
in its library, but the 91 seems to do things differently. Does anyone have thoughts on how I can get this example to work with the 91?const TSL2561_REGISTER_TIMING = "\x81"; // Access timing register
const TSL2561_REGISTER_ADC0_LSB = "\xAC"; // LSB of sensor's two-byte ADC value
const TSL2561_REGISTER_ADC1_LSB = "\xAE"; // MSB of sensor's two-byte ADC value