1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/driver_ina2xx
Leandro Lanzieri 9abf3247c8
tests/driver_{g,h,i,j}*: add Kconfig configuration files
This also adds these applications to the CI tests. The following drivers
have been modelled:

gp2y10xx
grove_ledbar
hd44780
hdc1000
hih6130
hmc5883l
hts221
ili9341
ina2xx
ina3221
io1_xplained
isl29020
isl29125
itg320x
jc42
my9221
2020-11-27 09:20:08 +01:00
..
app.config.test tests/driver_{g,h,i,j}*: add Kconfig configuration files 2020-11-27 09:20:08 +01:00
main.c drivers/ina2xx: Match RIOT's driver design goals 2019-11-22 20:28:57 +01:00
Makefile drivers/ina2xx: Match RIOT's driver design goals 2019-11-22 20:28:57 +01:00
README.md drivers/ina2xx: Match RIOT's driver design goals 2019-11-22 20:28:57 +01:00

About

This is a manual test application for the INA219/INA220 current and power monitor driver.

Usage

This test application will initialize the sensor with the default parameters in @ref ina2xx_params.h

After initialization, the application will print a table of the devices measurement data. If the I2C interface is fast enough, one row corresponds to one measurement of the device. (The sensor indicates when a new measurement is available via flags, this flags are read until the measurement is done. The duration of one measurement depends on the sensor settings and is between 84µs and 68.1ms. Please note that blocking stdio might very well be the bottleneck causing the test to miss measurements.)