From 7b13e4537c847fd1e5ba8a4e4d2f1100f8214d64 Mon Sep 17 00:00:00 2001 From: chocotov1 Date: Sun, 5 Jan 2025 01:02:46 +0100 Subject: [PATCH] Fix examples: Added missing semicolon after Wire.begin() --- examples/Example1_BasicReadings/Example1_BasicReadings.ino | 2 +- examples/Example2_Interrupts/Example2_Interrupts.ino | 4 ++-- .../Example3_EmbeddedFunctions/Example3_EmbeddedFunctions.ino | 4 ++-- .../Example5_ArduinoPlotterOutput.ino | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/Example1_BasicReadings/Example1_BasicReadings.ino b/examples/Example1_BasicReadings/Example1_BasicReadings.ino index 857d18d..1f084da 100644 --- a/examples/Example1_BasicReadings/Example1_BasicReadings.ino +++ b/examples/Example1_BasicReadings/Example1_BasicReadings.ino @@ -61,7 +61,7 @@ void setup() Serial.println("STHS34PF80 Example 1: Basic Readings"); // Begin I2C - Wire.begin() + 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 9026d1d..e3131b1 100644 --- a/examples/Example2_Interrupts/Example2_Interrupts.ino +++ b/examples/Example2_Interrupts/Example2_Interrupts.ino @@ -71,7 +71,7 @@ void setup() Serial.println("STHS34PF80 Example 2: Interrupts"); // Begin I2C - Wire.begin() + Wire.begin(); // Establish communication with device if(mySensor.begin() == false) @@ -121,4 +121,4 @@ void loop() Serial.println("cm^-1"); } } -} \ No newline at end of file +} diff --git a/examples/Example3_EmbeddedFunctions/Example3_EmbeddedFunctions.ino b/examples/Example3_EmbeddedFunctions/Example3_EmbeddedFunctions.ino index e1fa9b8..d523d91 100644 --- a/examples/Example3_EmbeddedFunctions/Example3_EmbeddedFunctions.ino +++ b/examples/Example3_EmbeddedFunctions/Example3_EmbeddedFunctions.ino @@ -62,7 +62,7 @@ void setup() Serial.println("STHS34PF80 Example 3: Using Embedded Functions"); // Begin I2C - Wire.begin() + Wire.begin(); // Establish communication with device if(mySensor.begin() == false) @@ -125,4 +125,4 @@ void loop() Serial.println("Motion detected! "); } } -} \ No newline at end of file +} diff --git a/examples/Example5_ArduinoPlotterOutput/Example5_ArduinoPlotterOutput.ino b/examples/Example5_ArduinoPlotterOutput/Example5_ArduinoPlotterOutput.ino index 2958c18..25d149d 100644 --- a/examples/Example5_ArduinoPlotterOutput/Example5_ArduinoPlotterOutput.ino +++ b/examples/Example5_ArduinoPlotterOutput/Example5_ArduinoPlotterOutput.ino @@ -58,7 +58,7 @@ void setup() Serial.println("STHS34PF80 Example 5: Arduino Serial Plotter Output"); // Begin I2C - Wire.begin() + Wire.begin(); // Establish communication with device if(mySensor.begin() == false) @@ -92,4 +92,4 @@ void loop() } } -} \ No newline at end of file +}