Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: BME280.h
- Revision:
- 2:42725d11023b
- Parent:
- 1:0dbf59c6e564
- Child:
- 3:df1107ddf502
--- a/BME280.h Tue Jul 10 07:53:16 2018 +0000 +++ b/BME280.h Tue Jul 10 07:59:58 2018 +0000 @@ -4,9 +4,9 @@ #include "mbed.h" #include "i2c_general_io.h" +#include "BME280_reg.h" //レジスタ関連の定義 + class BME280{ -private: -#include "BME280_reg.h" //レジスタ関連の定義 public: /** @@ -27,9 +27,9 @@ */ virtual ~BME280(); - const char hum_reg_value = HUM_OVER_SAMPL1; - const char meas_reg_value = TEMP_OVER_SAMPL1 | PRESS_OVER_SAMPL1 | SLEEP_MODE; - const char config_reg_value = IIR_OFF; + const char hum_reg_value = BMP280_HUM_OVER_SAMPL1; + const char meas_reg_value = BMP280_TEMP_OVER_SAMPL1 | BMP280_PRESS_OVER_SAMPL1 | BMP280_SLEEP_MODE; + const char config_reg_value = BMP280_IIR_OFF; float temp; double press; @@ -74,7 +74,6 @@ signed short dig_H4; signed short dig_H5; signed char dig_H6; - };