I2C module of the TNY-360 API (code 0x0E).
This module contains actions related to the I2C communication with external devices, like pinging devices, writing registers, and reading registers to devices on the extension port.
Here's a list of all the actions available in the i2c module:
0x0E - 0x00Pings an I2C device at the specified address to check if it is present on the bus.
uint8-
I2C address of the device to ping.
bool-
Whether a device responded at the specified address.
0x0E - 0x01Writes a sequence of bytes to a register of an I2C device.
uint8-
I2C address of the device to write to.
uint8-
Register address to write to.
uint8-
Number of bytes to write.
byte[]-
Data bytes to write to the register.
No return values
0x0E - 0x02Reads a sequence of bytes from a register of an I2C device.
uint8-
I2C address of the device to read from.
uint8-
Register address to read from.
uint8-
Number of bytes to read.
byte[]-
Read data bytes (of specified length).
Here's a list of all the types used in the i2c module: