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 855b5bd54d
tests: Updated BOARD_INSUFFICIENT_MEMORY
Added arduino-leonardo to BOARD_INSUFFICIENT_MEMORY where needed
2019-05-24 17:57:44 +02:00
..
tests doc: Update copywrites it include HAW 2019-01-28 09:08:50 +01:00
main.c tests/periph_i2c: Adapt to new i2c api 2018-07-25 12:01:40 +02:00
Makefile tests: Updated BOARD_INSUFFICIENT_MEMORY 2019-05-24 17:57:44 +02:00
README.md tests/periph_i2c: Adapt to new i2c api 2018-07-25 12:01:40 +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