adafruit / Adafruit_BME280_Library

Arduino Library for BME280 sensors
Other
333 stars 304 forks source link

Handling BMP280? #42

Closed szilvasyz closed 5 years ago

szilvasyz commented 5 years ago

Dear Friends, Is there any chance to enhance this library to handle BMP280 sensor (without humidity measuring) too? If you think I can offer my contribution in this enhancement. Zoltan

ladyada commented 5 years ago

no, we have a separate library for that :)

szilvasyz commented 5 years ago

Ok, I see, if you thought about Adafruit_BMP280 (https://github.com/adafruit/Adafruit_BMP280_Library). But that library is 1.5 years old and not a drop-in replacement of BME280 lib. Difference is not only lack of humidity-related functions, but I could not found no setSampling() nor takeForcedMeasurement() nor anything about mode settings. These would be great in a low-power, very low sampling rate (for example weather monitoring) application and all is already implemented in BME280 library. As I think, the simplest way to modify BME280 lib to handle BMP280 too would be enabling to open devices with IDs either 0x60 or 0x58, perhaps along with an ID-query function provided to the user. Then the user would have the possibility for proper handling humidity-related data.

ladyada commented 5 years ago

OK! please add any pull requests to that library - thats a better place for them :)