1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/driver_qmc5883l
Leandro Lanzieri 50383d7082
tests: add Kconfig configuration files for multiple driver tests
Configurations have been added for:
- opt3001
- pca9633
- pca9685
- pcd8544
- ph_oem
- pir
- pn532
- pulse_counter
- qmc5883l
- rn2xx3
2021-01-14 10:00:44 +01:00
..
app.config.test tests: add Kconfig configuration files for multiple driver tests 2021-01-14 10:00:44 +01:00
main.c tests: use inline functions for GPIO comparison 2020-08-31 13:11:05 +02:00
Makefile tests: add test for qmc5883l driver 2019-11-13 12:56:26 +01:00
README.md tests: add test for qmc5883l driver 2019-11-13 12:56:26 +01:00

About

This test application is created for testing/demonstrating the driver for QMC5883L magnetic sensors.

Configuration

This test uses the driver's default configuration as provided in drivers/qmc5883l/include/qmc5883l_params.h. You can override selected values from the command line or your application like so:

$ CFLAGS="-DQMC5883L_PARAM_OSR=QMC5883L_OSR_128" make all

The data ready (DRDY) interrupt pin and handling is disabled per default. If you which to use it, you have to specify the MCU pin that is connected to the DRDY pin for your QMC5883L sensor using the QMC5883L_PARAM_PIN_DRDY configuration option.

Independent of the ping configuration, the according submodule qmc5883l_int is always includes. This way, the test application will automatically use interrupts instead of polling to read the sensor data whenever a specific pin (anything other than GPIO_UNDEF) is configured.

Usage

Flash this application to any board you have connected a QMC5883L sensor to. When starting, this application will continuously read sensor data and print them to STDIO.