Commit Graph

57 Commits

Author SHA1 Message Date
Slavey Karadzhov f8a0da54c8 Fixed small spelling mistakes. 2021-12-10 10:14:51 +01:00
caternuson b1e4352b7b tweak memory alloc and cleanup 2021-08-24 10:21:27 -07:00
caternuson dba3ce0e09 convert to busio 2021-07-30 16:13:41 -07:00
Carter Nelson 0c4398f719
Merge pull request #57 from dirkmueller/init_spi3w
initialize spi3w_en
2021-07-30 09:38:27 -07:00
Carter Nelson a5fcef0b09
Merge pull request #79 from elli89/compensation
use compensation from reference implementation
2021-07-29 15:44:09 -07:00
Limor "Ladyada" Fried b234cc9ca8
Merge pull request #91 from danbaker-projects/danbaker-projects-patch-1
Fix incorrect float return value from getTemperatureCompensation()
2021-05-17 14:02:15 -04:00
danbaker-projects 6d76cd285e
Update Adafruit_BME280.cpp
This fixes a (very minor) bug in the return value of getTemperatureCompensation().
getTemperatureCompensation() was dropping (rounding to integer) the fractional part of the temperature offset due to an integer divide by 100 before casting to a float.

For example: if the temperature compensation was 1.49 degC, the value returned was 1.00

This didn't affect the accuracy of the readings (setTemperatureCompensation worked fine),
it only gave an incorrect value if you read the value back using getTemperatureCompensation
2020-10-13 13:47:44 -04:00
Michael d492906b28 Changed to clang format
Added whitespace
2020-09-30 08:30:41 +02:00
Michael 4bce9380d6 Changed to clang format
Replace tabs with whitespaces. Changed indentation of function "takeForcedMeasurement"
2020-09-30 08:18:37 +02:00
kimi1991 cd435d16fd Fixed bug #75
Fixed bug #75, added timeout to "takeForcedMeasurement" and a return value to check the result of the function
2020-09-24 21:39:43 +02:00
Jason Mansfield 25f8d5e555 Fix @params -> @param 2020-08-03 23:21:57 -07:00
Jason Mansfield 4e70835d58 format files with `clang-format -i` 2020-08-02 20:20:01 -07:00
Jason Mansfield 938e099006 temperature adjustment: rename getter/setter adjustment -> compensation 2020-08-02 17:40:12 -07:00
Jason Mansfield 643b75ffa3 complete t_fine_adjust getter 2020-08-01 23:34:21 -07:00
Jason Mansfield 626dc5b0bd Provide temperature compensation #84 2020-08-01 23:14:32 -07:00
Hannes Ellinger 6acf82ef0c fix error which causes pressure to be off by factor 2.56 2020-05-03 06:28:26 +02:00
Hannes Ellinger cf56a6f785 fix code style 2020-04-28 13:16:01 +02:00
Hannes Ellinger 14aff8ad76 fix typo 2020-04-28 12:46:03 +02:00
Hannes Ellinger 8edea615db use compensation from reference implementation 2020-04-28 11:57:03 +02:00
Lady Ada 0213f84f9f another clanground 2019-12-29 03:29:12 -05:00
Lady Ada ebf5715aba example for unified sensors 2019-12-29 03:24:43 -05:00
Lady Ada 610d7292df clang some more, add a humidity object 2019-12-29 03:01:52 -05:00
Lady Ada 9c75a42a5c clang & add temp/pressure Adafruit_Sensor components 2019-12-29 02:54:44 -05:00
Limor "Ladyada" Fried 7fa7054122
Merge pull request #56 from dirkmueller/master
Sign-extend Humidity Calibration H4/H5 data (Fixes #44)
2019-12-29 02:34:42 -05:00
Lady Ada 2a23df09f3 remove extra begin options. just one now.
also looked at https://github.com/adafruit/Adafruit_BME280_Library/issues/64 and reduced some delays
2019-12-29 02:31:52 -05:00
Lady Ada 16c3e721c7 fix for https://github.com/adafruit/Adafruit_BME280_Library/issues/69 revert 156a0537d6 2019-12-29 02:20:37 -05:00
Hyeonki Hong 156a0537d6 Correct 'begin()' to check basic I2C address
suggestion: Carter Nelson <caternuson@gmail.com>
2019-11-12 07:37:00 +09:00
Dirk Mueller 2149447f01 Sign-extend Humidity Calibration H4/H5 data (Fixes #44) 2019-09-15 22:40:14 +02:00
Johannes Rußek b13b3c9a6e Put BME280 to sleep before changing configuration
As mentioned in https://github.com/adafruit/Adafruit_BME280_Library/issues/30
2019-08-25 09:52:11 -04:00
Dirk Mueller 0c198dd795 initialize spi3w_en
No other code path seems to initialize this variable to a defined
value. Ensure set to SPI 4W.
2019-08-18 00:34:50 +02:00
Jan Hoffmann 7e39c445f0 added spi fixes 2019-06-20 18:26:48 +02:00
Jan Hoffmann 1f2d47a6fe
Merge pull request #49 from sellensr/master
begin() fail gracefully
2019-04-28 13:41:20 +02:00
Sami Kankaristo 745859172b Add LICENSE and mention it in all source files 2019-04-27 17:22:44 +03:00
Rick Sellens 874147604f begin() fail gracefully
try 0x76 address as well.
record _sensorID
2019-04-26 12:28:33 -04:00
Jan Hoffmann 9f8ab75056
Update Adafruit_BME280.cpp
typo in adafruit page device url
2019-02-06 17:19:40 +01:00
Mike 292ab5f933
Update Adafruit_BME280.cpp
just small correction in the doc
2018-11-28 16:43:04 +01:00
dean e0c8ee1694 DM: update docs 2018-08-09 11:42:21 -04:00
dean 225bed4415 DM: added startup delay 2017-12-27 18:39:20 -05:00
mjs513 63357a0d5e Fixed default setting bme.begin() 2017-09-12 07:35:36 -04:00
mjs513 ba0bcdb599 Made the Wire Bus selectable in setup 2017-09-12 06:29:13 -04:00
Frank Leon Rose b72b7d6285 Restore comment 2017-02-09 10:34:19 -05:00
Frank Leon Rose 50fb31ace1 On begin, read coefficients after calibration 2017-02-09 10:21:13 -05:00
pm73 4f66f97fe6 change loop to delay so ESP8266 can do Wi-Fi tasks
delay(1) allows ESP8266 to do Wi-Fi tasks. It is recommended to not make any code that blocks this for more than 20/50 microseconds.
2017-02-08 12:32:22 +01:00
ladyada 553c635a81 fixed and split example 2017-02-06 18:52:37 -05:00
mozzbozz 9e676f1d64 Implemented sensor modes and settings among other improvements 2016-08-18 23:24:14 +02:00
mozzbozz c96d20544a Added sea level pressure calculation helper function 2016-08-16 16:22:17 +02:00
ladyada b848cb2a74 https://github.com/adafruit/Adafruit_BME280_Library/issues/2 2016-01-21 20:17:16 -05:00
ladyada 3c2e13b15a bump oversampling up! 2016-01-21 20:16:29 -05:00
ladyada b6369f7a6b burst read temp & pressure 2016-01-21 20:04:35 -05:00
ladyada b3f8576b48 must get temp before humidity or pressure in order to set t_fine 2016-01-21 18:31:21 -05:00