You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
488 B

Purpose: to demonstrate how to communicate with i2c device by calling function of I2C module .
Command:
read:
Usage: i2c_read i2c_channel device_addr register_addr register_addr_len read_bytes_number
write:
Usage: i2c_write i2c_channel device_addr register_addr register_addr_len write_bytes_number byte0 [... byten]
Parameter: see Usage.
Notice: to insure that the hardward connection between i2c device and chipset is correctly.