2018-12-13 11:45:49 +01:00
|
|
|
# AMS CCS811 device driver test application
|
|
|
|
|
|
|
|
## About
|
2018-10-17 09:50:09 +02:00
|
|
|
|
|
|
|
This is a manual test application for the CCS811 driver. It shows how the
|
2018-12-13 11:45:49 +01:00
|
|
|
sensor can be used with interrupts.
|
|
|
|
|
|
|
|
**Please note:** The interrupt pin has to be defined for this test application.
|
2018-10-17 09:50:09 +02:00
|
|
|
|
2018-12-13 11:45:49 +01:00
|
|
|
## Usage
|
2018-10-17 09:50:09 +02:00
|
|
|
|
|
|
|
The test application demonstrates the use of the CCS811 and pseudomodule
|
2021-12-04 13:43:03 +01:00
|
|
|
`ccs811_full` using
|
2018-10-17 09:50:09 +02:00
|
|
|
|
2021-12-04 13:43:03 +01:00
|
|
|
- data-ready interrupt `CCS811_INT_DATA_READY` and
|
2018-12-18 12:43:24 +01:00
|
|
|
- default configuration parameters, that is, the measurement mode
|
2021-12-04 13:43:03 +01:00
|
|
|
`CCS811_MODE_1S` with one measurement per second.
|
2018-10-17 09:50:09 +02:00
|
|
|
|
|
|
|
The default configuration parameter for the interrupt pin has to be
|
|
|
|
overridden according to the hardware configuration by defining
|
2021-12-04 13:43:03 +01:00
|
|
|
`CCS811_PARAM_INT_PIN` before `ccs811_params.h` is included, e.g.,
|
|
|
|
```
|
|
|
|
#define CCS811_PARAM_INT_PIN (GPIO_PIN(0, 7))
|
|
|
|
```
|
2018-12-18 12:43:24 +01:00
|
|
|
or via the `CFLAGS` variable in the make command.
|
2021-12-04 13:43:03 +01:00
|
|
|
```
|
2023-05-06 15:38:21 +02:00
|
|
|
CFLAGS="-DCCS811_PARAM_INT_PIN=GPIO_PIN\(0,7\)" make -C tests/drivers/ccs811_full BOARD=...
|
2021-12-04 13:43:03 +01:00
|
|
|
```
|