From fb24a33f8a7fda4d7253bd5e48c32ed368235f5b Mon Sep 17 00:00:00 2001 From: lfierz Date: Thu, 31 Mar 2022 09:06:58 +0200 Subject: [PATCH 1/2] minor formatting updates in readme --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 997bd16..f4c8a96 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ support it are listed in the API description. - LD20-0600L - LD20-2600B + The following instructions and examples use a *SLF3C-1300F*.Click [here](https://sensirion.com/media/documents/F3931025/621F8CCE/Sensirion_Liquid_Flow_Meters_SLF3C-1300F_Datasheet.pdf ) to download the datasheet. @@ -35,7 +36,7 @@ The following instructions and examples use a *SLF3C-1300F*.Click [here](https:/ ### Connecting the Sensor -Your sensor has the four different connectors: VCC, GND, SDA, SCL. Use +Your sensor has the four different connectors: VDD, GND, SDA, SCL. Use the following pins to connect your SF06-LF: @@ -94,8 +95,8 @@ manager or `Add .ZIP Library` File => Examples => Sensirion I2C SF06-LF => exampleUsage -The example is configured to run with the default I2C address 0x08. - In case you need a different address change it in the code of `exampleUsage`. You find the list with pre-defined + The example is configured to run with a SLF3C-1300F, I2C address 0x08. + In case you need a different address change it in the code of `examples/exampleUsage.ino`. You find the list with pre-defined addresses for the supported sensors in the `src/SensirionI2CSf06Lf.h`. From 5f27e3c116ed5426b310456498b0e58637ee64f3 Mon Sep 17 00:00:00 2001 From: lfierz Date: Thu, 31 Mar 2022 09:16:10 +0200 Subject: [PATCH 2/2] remove some comment lines in code --- src/SensirionI2cSf06Lf.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/SensirionI2cSf06Lf.h b/src/SensirionI2cSf06Lf.h index afd3740..63bb82b 100644 --- a/src/SensirionI2cSf06Lf.h +++ b/src/SensirionI2cSf06Lf.h @@ -63,8 +63,6 @@ #define LD20_2600B_ADDR_A 0x08 #define SF06_LF_I2C_ADDRESS 0x08 -// define enum with command ids - typedef enum { START_H2O_CONTINUOUS_MEASUREMENT_CMD_ID = 0x3608, START_IPA_CONTINUOUS_MEASUREMENT_CMD_ID = 0x3615, @@ -96,8 +94,6 @@ class SensirionI2cSf06Lf { */ void begin(TwoWire& i2cBus, uint8_t i2cAddress); - // user-api functions - /** * @brief read measured data * @@ -159,8 +155,6 @@ class SensirionI2cSf06Lf { uint8_t serialNumber[], uint16_t serialNumberSize); - // low-level-api functions - /** * @brief Start continuous measurement mode for H₂O * @@ -358,8 +352,6 @@ class SensirionI2cSf06Lf { TwoWire* _i2cBus = nullptr; uint8_t _i2cAddress = 0; - // conversion functions - /** * @brief signalFlow *