homie-node-collection icon indicating copy to clipboard operation
homie-node-collection copied to clipboard

Add files via upload

Open keesma opened this issue 3 years ago • 2 comments

Added support for BMP280 (based on BME280)

keesma avatar Mar 07 '21 22:03 keesma

The BME280 also measures humidity. The other functions are the same. There is a different underlying library from Adafruit. The I2C addresses are the same but the device type is different. I am not sure what the best way is handling duplicate code. I used the BME280 code as a base and made some adjustments.

While using it I noticed that the BMP280 cannot do forced measurements. I might have to provide updated source code for this.

keesma avatar Mar 09 '21 00:03 keesma

There is a lot that can go into a common base class when I look at the code. I'll let you finish your PR and afterwards I'll refactor. I'm also thinking about making the sensor nodes more generic. loop() is basically always the same, only taking the measurement differs.

luebbe avatar Mar 09 '21 08:03 luebbe