[bmp581_base] Add support for BMP585 (#15277)

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
This commit is contained in:
Christian H
2026-04-01 03:39:41 +02:00
committed by GitHub
parent 954227b203
commit 8f2cf8b8a7
2 changed files with 3 additions and 2 deletions
@@ -126,7 +126,7 @@ void BMP581Component::setup() {
} }
// verify id // verify id
if (chip_id != BMP581_ASIC_ID) { if (chip_id != BMP581_ASIC_ID && chip_id != BMP585_ASIC_ID) {
ESP_LOGE(TAG, "Unknown chip ID"); ESP_LOGE(TAG, "Unknown chip ID");
this->error_code_ = ERROR_WRONG_CHIP_ID; this->error_code_ = ERROR_WRONG_CHIP_ID;
@@ -8,6 +8,7 @@
namespace esphome::bmp581_base { namespace esphome::bmp581_base {
static const uint8_t BMP581_ASIC_ID = 0x50; // BMP581's ASIC chip ID (page 51 of datasheet) static const uint8_t BMP581_ASIC_ID = 0x50; // BMP581's ASIC chip ID (page 51 of datasheet)
static const uint8_t BMP585_ASIC_ID = 0x51;
static const uint8_t RESET_COMMAND = 0xB6; // Soft reset command static const uint8_t RESET_COMMAND = 0xB6; // Soft reset command
// BMP581 Register Addresses // BMP581 Register Addresses