I2C

Function Description

set I2C port

Master slave addr Set the Master interface and slave address

Set at sda scl slave addr Custom SDA SCL and slave address

Write reg one byte Write 1 byte of data to the register address

Write reg one short With encode Big endian mode writes two bytes to the register address

Read reg one byte Read a byte from the register address

Read reg one short with decode Big endian mode reads two bytes from the register address

Read reg Read byte Read several bytes from the register address

Read byte Read byte

Available I2C address in list Check if the I2C address is available

Scan I2C device Scanning I2C devices

Instructions

Read data from I2C

Write mem data reg date type Writes the specified data type to the register address

Write data type Write specified data to bus

Read mem data reg date type Writes the specified data type to the register address

Read data num type Write specified data from bus

In data get index Extract a data from a list

Write data to I2C

Read date from I2C

On This Page