From e1fc8836ae56554450160665253ffbae33690eb1 Mon Sep 17 00:00:00 2001 From: mjs513 Date: Tue, 12 Sep 2017 13:10:58 -0400 Subject: [PATCH] Revert to begin to original, added comment --- examples/sensorapi/sensorapi.ino | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/sensorapi/sensorapi.ino b/examples/sensorapi/sensorapi.ino index 6c5c372..640cbb7 100644 --- a/examples/sensorapi/sensorapi.ino +++ b/examples/sensorapi/sensorapi.ino @@ -94,7 +94,9 @@ void setup(void) Serial.println("Light Sensor Test"); Serial.println(""); /* Initialise the sensor */ - if(!tsl.begin(&Wire2)) //use tsl.begin() to default to Wire, &Wire2 directs api to use Wire2, etc. + //use tsl.begin() to default to Wire, + //tsl.begin(&Wire2) directs api to use Wire2, etc. + if(!tsl.begin()) { /* There was a problem detecting the TSL2561 ... check your connections */ Serial.print("Ooops, no TSL2561 detected ... Check your wiring or I2C ADDR!");