Closed mjs513 closed 7 years ago
hiya please remove example where you change Wire2, the examples should not change behavior :)
have you tested with arduino UNO?
I reverted to tsl.begin in the example and added a comment on how to use for other Wire buses. I did not connect the sensor up but I did a compile with no errors for begin() and begin(&Wire). I can dig it out to give it a try.
please do :) it will help us a lot!
Ok. Tested with Uno, Mega and Due using &Wire1. Worked fine. :) Really had to go fine the uno and due boards - didn't use them for a while. I am also making similar changes for the BME280 lib which I have pull request in for as well as the BN055 lib which is in work. I really like Adafruit boards and libs so this is my way of contributing back.
thank you kindly :)
Thanks for merging. Mike
Scope of Change: Added support for Teensy 3.x series of microcontrollers - excluded pgmspace.h if TEENSYDUINO is used. Additionally, added the compatibility to select which Wire port you would like to use with the sensor. For instance:
Limitation: The only limitation is that there is no default test if you select a Wire port that is not available.
Test: Ran a test on the Teensy 3.5 with the sensor on Wire2 and worked fine.
Thanks for considering this change Mike