Skip to content

Commit

Permalink
improved documentation for usage with alternate I2C address
Browse files Browse the repository at this point in the history
  • Loading branch information
mhaack committed Feb 8, 2017
1 parent e7238de commit 4f20458
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ This library allows the user to:
* Read altitude in meters
* Read altitude in feet

__Hint__: the default I2C address used by the library is (0x77), as in Adafruit_BME280.h. If you sensor board uses a different
address you can set your own via the .begin(...) method.

Repository Contents
-------------------

Expand All @@ -31,6 +34,7 @@ Version History
* [V_1.0.0](https://github.com/mhaack/Adafruit_BME280_Library/releases/tag/1.0.0) - September 2015 Initial Release
* [V_1.0.4](https://github.com/mhaack/Adafruit_BME280_Library/releases/tag/1.0.4.particle) - October 2015 pull from Adafruit repo to support multiple sensors with different calibration values
* [V_1.1.2](https://github.com/mhaack/Adafruit_BME280_Library/releases/tag/1.1.2.particle) - January 2017 migrated to V2 library, pulled minor changes
* [V_1.1.3](https://github.com/mhaack/Adafruit_BME280_Library/releases/tag/1.1.3.particle) - February 2017 improved documentation

License Information
-------------------
Expand Down
5 changes: 5 additions & 0 deletions examples/bme280test/bme280test.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
These sensors use I2C or SPI to communicate, 2 or 4 pins are required
to interface.
Hint: the default I2C address used by the library is (0x77), as in
Adafruit_BME280.h. If you sensor board uses a different address you
can set your own via the .begin(...) method.
Adafruit invests time and resources providing this open source code,
please support Adafruit andopen-source hardware by purchasing products
from Adafruit!
Expand Down Expand Up @@ -36,6 +40,7 @@ void setup() {
Serial.begin(9600);
Serial.println(F("BME280 test"));

// if (!bme.begin(0x76)) {
if (!bme.begin()) {
Serial.println("Could not find a valid BME280 sensor, check wiring!");
while (1);
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Adafruit_BME280
version=1.1.2
version=1.1.3
license=BSD license
author=Adafruit <[email protected]>, Markus Haack (https://github.com/mhaack)
sentence=Adafruit BME280 Library
Expand Down

0 comments on commit 4f20458

Please sign in to comment.