1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/drivers/ina2xx
2024-03-26 14:53:35 +01:00
..
main.c tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02:00
Makefile tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02:00
README.md tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02: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.)