diff --git a/examples/Example1_BasicReadings/Example1_BasicReadings.ino b/examples/Example1_BasicReadings/Example1_BasicReadings.ino index db0aab2..857d18d 100644 --- a/examples/Example1_BasicReadings/Example1_BasicReadings.ino +++ b/examples/Example1_BasicReadings/Example1_BasicReadings.ino @@ -61,11 +61,7 @@ void setup() Serial.println("STHS34PF80 Example 1: Basic Readings"); // Begin I2C - if(Wire.begin() == 0) - { - Serial.println("I2C Error - check I2C Address"); - while(1); - } + Wire.begin() // Establish communication with device if(mySensor.begin() == false) diff --git a/examples/Example2_Interrupts/Example2_Interrupts.ino b/examples/Example2_Interrupts/Example2_Interrupts.ino index 5af1165..9026d1d 100644 --- a/examples/Example2_Interrupts/Example2_Interrupts.ino +++ b/examples/Example2_Interrupts/Example2_Interrupts.ino @@ -71,11 +71,7 @@ void setup() Serial.println("STHS34PF80 Example 2: Interrupts"); // Begin I2C - if(Wire.begin() == 0) - { - Serial.println("I2C Error - check I2C Address"); - while(1); - } + Wire.begin() // Establish communication with device if(mySensor.begin() == false) diff --git a/examples/Example3_EmbeddedFunctions/Example3_EmbeddedFunctions.ino b/examples/Example3_EmbeddedFunctions/Example3_EmbeddedFunctions.ino index fdcff45..e1fa9b8 100644 --- a/examples/Example3_EmbeddedFunctions/Example3_EmbeddedFunctions.ino +++ b/examples/Example3_EmbeddedFunctions/Example3_EmbeddedFunctions.ino @@ -62,11 +62,7 @@ void setup() Serial.println("STHS34PF80 Example 3: Using Embedded Functions"); // Begin I2C - if(Wire.begin() == 0) - { - Serial.println("I2C Error - check I2C Address"); - while(1); - } + Wire.begin() // Establish communication with device if(mySensor.begin() == false) diff --git a/examples/Example5_ArduinoPlotterOutput/Example5_ArduinoPlotterOutput.ino b/examples/Example5_ArduinoPlotterOutput/Example5_ArduinoPlotterOutput.ino index 83f9b49..2958c18 100644 --- a/examples/Example5_ArduinoPlotterOutput/Example5_ArduinoPlotterOutput.ino +++ b/examples/Example5_ArduinoPlotterOutput/Example5_ArduinoPlotterOutput.ino @@ -58,11 +58,7 @@ void setup() Serial.println("STHS34PF80 Example 5: Arduino Serial Plotter Output"); // Begin I2C - if(Wire.begin() == 0) - { - Serial.println("I2C Error - check I2C Address"); - while(1); - } + Wire.begin() // Establish communication with device if(mySensor.begin() == false)