CO2, humidity, and temperature sensor
Diff: SCD30.h
- Revision:
- 2:0d0174b46fd3
- Parent:
- 1:c5b8dc5cdcee
- Child:
- 3:ca833b38050f
--- a/SCD30.h Fri May 07 11:46:50 2021 +0000 +++ b/SCD30.h Fri May 07 13:06:14 2021 +0000 @@ -38,7 +38,7 @@ * @brief DEFAULT ADDRESS */ typedef enum { - SCD30_ADDRESS = 0x61 /*!< SCD30 ADDR */ + SCD30_ADDRESS = ( 0x61 << 1U ) /*!< SCD30 ADDR */ } SCD30_address_t; @@ -293,11 +293,11 @@ */ SCD30_status_t SCD30_SoftReset ( void ); +private: /** It calculates the I2C checksum calculation (CRC-8). */ uint8_t SCD30_CalculateI2C_CRC8 ( uint16_t seed ); - -private: + I2C _i2c; uint32_t _SCD30_Addr; };