adafruit / Adafruit_BMP280_Library

Arduino Library for BMP280 sensors
250 stars 187 forks source link

add sensorID() #51

Closed koendv closed 3 years ago

koendv commented 3 years ago

This pull request adds a sensorID() function to the BMP280 library. sensorID() returns 0x61 for BME680, 0x60 for BME280, 0x56, 0x57, 0x58 for BMP280, and 0x0 if the sensor is no longer plugged in. I use this to check if a sensor is still responsive.

ladyada commented 3 years ago

please run clang-format so CI passes :)

ladyada commented 3 years ago

thanx!

koendv commented 3 years ago

A pleasure. I hope you guys make it through these times unscathed.