Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
card10
firmware
Commits
50c09cf0
Commit
50c09cf0
authored
4 years ago
by
schneider
Browse files
Options
Downloads
Patches
Plain Diff
change(bsec): Documentation
parent
804d3486
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!380
BSEC support
Pipeline
#5042
passed
4 years ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Documentation/pycardium/bme680.rst
+8
-0
8 additions, 0 deletions
Documentation/pycardium/bme680.rst
pycardium/modules/py/bme680.py
+3
-0
3 additions, 0 deletions
pycardium/modules/py/bme680.py
with
11 additions
and
0 deletions
Documentation/pycardium/bme680.rst
+
8
−
0
View file @
50c09cf0
...
...
@@ -46,6 +46,14 @@ library will be activated which offers the following extra functionality:
time.sleep(1)
You can use the return type of :py:meth:`~bme680.Bme680.get_data` to decide
if you want to use/display the additonal fields returned if BSEC is enabled.
.. code-block:: python
if isinstance(d, bme680.BSECData):
print("Air quality: {:7d}".format(d.iaq))
Sensor Class
------------
...
...
This diff is collapsed.
Click to expand it.
pycardium/modules/py/bme680.py
+
3
−
0
View file @
50c09cf0
...
...
@@ -78,6 +78,9 @@ class Bme680:
- ``iaq_accuracy``: Accuracy of indoor air quality
- ``eco2``: Equivalent CO2 content in *ppm*
If BSEC is enabled an instance of `bme680.BSECData` will be returned.
If BSEC is not enabled an instance of `bme680.Bme680Data` will be returned.
**Example**:
.. code-block:: python
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment