1
0
mirror of https://github.com/cmur2/python-bme680.git synced 2024-06-02 00:34:40 +02:00
Commit Graph

80 Commits

Author SHA1 Message Date
Phil Howard
191dc9e115 Remove .travis.yml 2020-11-14 11:00:37 +00:00
Phil Howard
9855b10969 Add GitHub actions workflow 2020-11-14 10:57:49 +00:00
Phil Howard
6b5c136823 Merge branch 'melvinmajor-patch-1' 2020-11-02 15:59:04 +00:00
Phil Howard
d7f712247a Swap from ord() to bytes 2020-11-02 15:58:50 +00:00
Phil Howard
adfd58db6b Merge branch 'patch-1' of git://github.com/melvinmajor/bme680-python into melvinmajor-patch-1 2020-11-02 15:57:28 +00:00
Philip Howard
8ecf91fdd8
Merge pull request #29 from NicolaiSoeborg/patch-1
Add dependency: smbus
2020-11-02 15:55:11 +00:00
Nicolai Søborg
02ca7a4353
Update dependency requirement
If anyone is reading the file they will know to install `python3-smbus`,
but if someone just do a quick `pip3 install bme680` then make sure to pull smbus from PyPI
2020-11-01 01:11:16 +00:00
Melvin Campos Casares
056049ee03
Fix TypeError preventing script to launch
TypeError: argument should be integer or bytes-like object, not 'str'
2020-10-21 19:07:20 +02:00
Nicolai Søborg
91bb131713
Add dependency: smbus2
Fixes:

```python
>>> import bme680                                                                                                                                                                                          
>>> sensor = bme680.BME680(bme680.I2C_ADDR_PRIMARY)                                                                                                                                                        
Traceback (most recent call last):                                                                                                                                                                         
  File "<stdin>", line 1, in <module>                                                                                                                                                                      
  File "/usr/local/lib/python3.7/dist-packages/bme680/__init__.py", line 22, in __init__                                                                                                                   
    import smbus                                                                                                                                                                                           
ModuleNotFoundError: No module named 'smbus'                                                                                                                                                               
```
2020-05-29 15:35:54 +00:00
Philip Howard
7e6bdd0dc4
Merge pull request #28 from pimoroni/tests-and-qa
Tests and QA
2020-03-20 15:49:53 +00:00
Phil Howard
5806466739 Fix for test in py3 2020-03-20 15:44:06 +00:00
Phil Howard
45eeba9bb4 Minor linting fixes to examples 2020-03-20 15:38:31 +00:00
Phil Howard
90fabf53fa Expand test coverage and improve tests 2020-03-20 15:38:22 +00:00
Philip Howard
3a48112445
Fix learn link for #25 (#26) 2019-11-08 11:53:07 +00:00
Sandy Macdonald
91434caf0b
Merge pull request #24 from pimoroni/examples-tidyup
Tidying up and adding examples
2019-06-09 13:14:58 +01:00
Sandy Macdonald
5a5dd139c3 Tidying up and adding examples 2019-06-09 13:11:35 +01:00
Giampiero Baggiani
e827e5d622 added check on constants.__dict__ for micropython support (#18)
* added check on constants.__dict__ for micropython support
2018-12-10 09:55:07 +00:00
Philip Howard
e97c5f9241
Merge pull request #17 from pimoroni/tests
Fixed Travis badge URL
2018-09-03 11:42:59 +01:00
Phil Howard
e43b362a33 Fixed Travis badge URL 2018-09-03 11:39:10 +01:00
Philip Howard
15171e57f6
Merge pull request #16 from pimoroni/tests
Test suites and code QA fixes
2018-09-03 11:17:21 +01:00
Phil Howard
8dce708fef Check for both i2c addresses in examples 2018-09-03 11:13:32 +01:00
Phil Howard
df382a50aa Updated badges 2018-09-02 11:31:16 +01:00
Phil Howard
6374bc4241 Test suites and code QA fixes 2018-09-02 11:26:04 +01:00
Phil Howard
c97791d720 Updated ignored QA warnings 2018-08-28 21:09:53 +01:00
Phil Howard
4b61558566 Added Build Status 2018-08-28 20:41:16 +01:00
Phil Howard
a4a0cfcd2a Added flake8 install for travis 2018-08-28 20:33:03 +01:00
Phil Howard
b2641c48df Travis flake8 checks 2018-08-28 20:30:59 +01:00
Phil Howard
2dc799a7a4 Added BG tooling 2018-08-14 09:30:42 +00:00
Phil Howard
50902ac08e Prep for v1.0.5 2018-06-01 17:15:10 +01:00
Phil Howard
05f80690e0 Merge branch 'ayeks-offset' 2018-06-01 16:10:47 +01:00
Phil Howard
0f0be7f2c2 Tidied up temp-offset.py example 2018-06-01 16:10:34 +01:00
Phil Howard
4ae50e2f2c Fixed bug in set_temp_offset 2018-06-01 16:10:08 +01:00
Phil Howard
7e08c2d749 Fixed packaging errors 2018-06-01 16:04:37 +01:00
Phil Howard
bc2f729013 Made temp-offset.py executable 2018-06-01 16:04:27 +01:00
Lars Lühr
fed191e40e use math.copysign for temp offset calculation 2018-05-31 08:21:14 +00:00
Lars Lühr
8cb0dead6b added temp offset float example 2018-05-28 21:41:16 +00:00
Lars Lühr
ae004aa62b accept float values in set_temp_offset 2018-05-28 21:38:19 +00:00
Lars Lühr
1c9ba41306 added set_temp_offset function and example 2018-05-28 21:18:20 +00:00
Philip Howard
40b4b63b93
Create LICENSE 2018-02-20 15:21:25 +00:00
Phil Howard
da6ae97f1f Prep for v1.0.4 2017-12-04 10:37:52 +00:00
Philip Howard
097287e842
Merge pull request #8 from lowflyerUK/master
Updated mask operation in constants.py to correct gas resistance
2017-12-04 10:28:14 +00:00
lowflyerUK
02407e1d01 Updated mask operation in constants.py to correct gas resistance 2017-12-03 21:49:32 +00:00
Phil Howard
888d8b312a Convert negative gas resistance readings to unsigned int32 2017-12-01 14:08:40 +00:00
Phil Howard
288daed781 Version 1.0.3 prep 2017-11-23 11:25:34 +00:00
Philip Howard
c9d4cef987
Merge pull request #5 from gkluoe/master
Fix reassignment of variable in pressure calculation algo
2017-11-22 16:19:43 +00:00
Geoff Lee
26a28bfde7 Fix reassignment of variable in pressure calculation algo 2017-11-21 21:16:27 +00:00
Philip Howard
1baa47fb56
Merge pull request #4 from davea/typeerror_fixes
Fix Python 3 TypeError crashes by using floor division explicitly
2017-11-20 12:09:09 +00:00
Dave Arter
3e4bf56802 Fix Python 3 TypeError crashes by using floor division explicitly
The / operator in Python 3 returns a float, which was causing TypeErrors
when being passed to the << or >> operators.
2017-11-19 17:10:27 +00:00
Phil Howard
d9970151cd Fixes from upstream BME680_driver 3.5.3 2017-11-17 11:29:48 +00:00
Sandy Macdonald
fffb5205d1 Fixed another copy-paste error! 2017-10-19 12:31:19 +01:00