OpenBK7231T_App icon indicating copy to clipboard operation
OpenBK7231T_App copied to clipboard

Add bme280 humidity

Open NonPIayerCharacter opened this issue 9 months ago • 4 comments

Measurement code copied from esphome. Don't have a bme280, but bmp280 continue to work normally. Can try to add bme680, but it is significantly different from bmx280, so the code here will not work. So if i'm to try, am i to code it in this library, or add a new one instead?

NonPIayerCharacter avatar May 13 '24 10:05 NonPIayerCharacter

Very good, thank you! I don't have this chip as well but maybe @divadiow has?

Regarding 680 - well, if you say it's different, then create a separate driver, you know, separate entry in drv_main.c, then a file drv_bme680, etc. You can also ask me for help anytime and I will try my best. Just make sure to put your driver disabled by default because we are trying to avoid reaching max OTA size on some platforms

openshwprojects avatar May 13 '24 12:05 openshwprojects

only BME680/BMP280 currently. will buy BME280

divadiow avatar May 13 '24 19:05 divadiow

What is the state of this feature? Has it been already tested? I would like to merge it but i dont have required chip at hand

openshwprojects avatar May 19 '24 08:05 openshwprojects

if it's any help, my BME280 should arrive this week

divadiow avatar May 19 '24 08:05 divadiow

image

Address 0x76 (dec 118)

BME280

divadiow avatar Jun 09 '24 15:06 divadiow

Thank you, I think I can merge it now

openshwprojects avatar Jun 09 '24 17:06 openshwprojects

:tada: This PR is included in version 1.17.610 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

github-actions[bot] avatar Jun 09 '24 17:06 github-actions[bot]

to initiate and read BME280 use the following in your autoexec file:

// startDriver BMP280 [ClkPin] [DatPin] [OptionalTargetChannel]
startDriver BMP280 7 8 2
BMP280_Adr 0x76

1

DeDaMrAzR avatar Jun 10 '24 00:06 DeDaMrAzR