Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
ae3ad4a9
Commit
ae3ad4a9
authored
6 years ago
by
Gunar Schorcht
Committed by
Alexandre Abadie
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
tests/ccs811: satisfy Codacy
parent
3181a2fa
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/driver_ccs811/README.md
+3
-4
3 additions, 4 deletions
tests/driver_ccs811/README.md
tests/driver_ccs811_full/README.md
+9
-11
9 additions, 11 deletions
tests/driver_ccs811_full/README.md
with
12 additions
and
15 deletions
tests/driver_ccs811/README.md
+
3
−
4
View file @
ae3ad4a9
...
...
@@ -9,10 +9,9 @@ sensor can be used for periodic polling.
The test application demonstrates the use of the CCS811 using
-
data-ready status function
```ccs811_data_ready```
to wait for new data and
-
default configuration parameters, that is, the measurement mode
```
CCS811_MODE_1S``` with one measurement per second.
-
data-ready status function
```ccs811_data_ready```
to wait for new data and
-
default configuration parameters, that is, the measurement mode
```
CCS811_MODE_1S``` with one measurement per second.
Please refer ```$(RIOTBASE)/tests/driver_ccs811_full``` to learn how
to use the CCS811 with interrupts.
This diff is collapsed.
Click to expand it.
tests/driver_ccs811_full/README.md
+
9
−
11
View file @
ae3ad4a9
...
...
@@ -12,18 +12,16 @@ sensor can be used with interrupts.
The test application demonstrates the use of the CCS811 and pseudomodule
```
ccs811_full``` using
- data-ready interrupt ```CCS811_INT_DATA_READY``` and
- default configuration parameters, that is, the measurement mode
```CCS811_MODE_1S``` with one measurement per second.
- data-ready interrupt ```CCS811_INT_DATA_READY``` and
- default configuration parameters, that is, the measurement mode
```CCS811_MODE_1S``` with one measurement per second.
The default configuration parameter for the interrupt pin has to be
overridden according to the hardware configuration by defining
```
CCS811_PARAM_INT_PIN
``` before ```
ccs811_params.h
```
is included, e.g.,
```
#define CCS811_PARAM_INT_PIN (GPIO_PIN(0, 7))
```
or via the CFLAGS variable in the make command.
```
CFLAGS="-DCCS811_PARAM_INT_PIN=
\(
GPIO_PIN
\(
0,7
\)\)
" make -C tests/driver_ccs811 BOARD=...
```
#define CCS811_PARAM_INT_PIN (GPIO_PIN(0, 7))
or via the
`CFLAGS`
variable in the make command.
CFLAGS="-DCCS811_PARAM_INT_PIN=\(GPIO_PIN\(0,7\)\)" make -C tests/driver_ccs811 BOARD=...
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