1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/periph_i2c
Marian Buschsieweke 12140ffb0e
examples,tests: Drop redundant dependency
When depending on one or more shell commands, the shell is pulled in
as dependency anyway.
2023-04-19 16:58:10 +02:00
..
app.config.test examples,tests: replace deprecated module names by new names 2022-09-16 13:15:46 +02:00
Kconfig tests/periph_*: add Kconfig configuration files 2020-11-06 15:58:00 +01:00
main.c tests: update to new I2C API 2021-11-29 06:35:25 +01:00
Makefile examples,tests: Drop redundant dependency 2023-04-19 16:58:10 +02:00
Makefile.ci examples,tests: Update Makefile.cis 2023-02-27 12:31:04 +01:00
README.md tests/periph_i2c: Remove obsolete python tests 2019-10-16 15:54:10 +02:00

Expected result

This test enables you to test all available low-level I2C functions using the shell. Consult the help shell command for available actions.

Background

Test for the low-level I2C driver. Can be run manually or using python script interface.

Glossary

DEV - The I2C device number, this is usually 0. Consult the board header file for more information.
ADDR - The address of the slave I2C device, this is usually the sensor. Information on the slave address should be found in the sensor datasheet.
REG - The register of the slave device/sensor. Not all sensors follow this access method. A I2C_NOSTOP (0x04) may be needed.
LEN - The length to read or write.
FLAG - Flags set for the I2C, more information is available in driver/include/periph/i2c.h

note: Automated tests can be found in the RobotFW-tests repository