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.
Dependencies: mbed
bme280.h
00001 #ifndef MBED_BME280_SPI_H 00002 #define MBED_BME280_SPI_H 00003 00004 #include "mbed.h" 00005 00006 class BME280 00007 { 00008 private: 00009 uint16_t dig_T1; 00010 int16_t dig_T2, dig_T3; 00011 uint16_t dig_P1; 00012 int16_t dig_P2, dig_P3, dig_P4, dig_P5, dig_P6, dig_P7, dig_P8, dig_P9; 00013 uint16_t dig_H1, dig_H3; 00014 int16_t dig_H2, dig_H4, dig_H5, dig_H6; 00015 int32_t t_fine; 00016 00017 public: 00018 enum spi_mask { 00019 BME280_MASK = 0x7F 00020 }; 00021 00022 BME280(); 00023 00024 //void initialize(void); 00025 00026 float getTemperature(void); 00027 00028 float getPressure(void); 00029 00030 float getHumidity(void); 00031 }; 00032 00033 #endif
Generated on Sun Jul 31 2022 00:02:53 by
1.7.2