Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions examples/Example1_BasicReadings/Example1_BasicReadings.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 1 addition & 5 deletions examples/Example2_Interrupts/Example2_Interrupts.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down