Connection to device on I2C bus on Arduino hardware
This object represents a connection to the I2C device on Arduino® hardware. Attach an I2C device to the appropriate pins on the Arduino hardware. You can interact with the I2C device using the functions listed in Object Functions.
creates an object that represents the connection between an I2C connected to the I2C bus
on the Arduino hardware. The Arduino hardware is represented by an deviceObj
= device(arduinoObj
,'I2CAddress',I2CAddress
,Name,Value
)arduino
object. You can
also customize the connection further using one or more name-value pairs. The
'I2CAddress'
name-value pair is mandatory for creating the I2C device
connection.
read | Read data from I2C bus |
readRegister | Read data from I2C device register |
write | Write data to I2C bus |
writeRegister | Write data to I2C device register |