Module i2c

Module i2c 

Source
Expand description

Interface for the I2C protocol.

When pin 5 is connected to ground, TF-Luna enters I2C mode. In this mode, pin 2 is used as SDA (Serial Data) and pin 3 as SCL (Serial Clock).

TF-Luna supports up to 400kps clock speed as slave machine and its default address is 0x10.

Max transmission rate400kbps
Master/Slave modeSlave
Default address0x10
Address range0x01~0x7F

Re-exports§

pub use blocking::TFLuna;

Modules§

asynchronous
Asynchronous I2C interface
blocking
Blocking I2C interface

Structs§

Address
I2C device address

Enums§

Error
I2C Error enum

Constants§

DEFAULT_SLAVE_ADDRESS
Default I2c Slave Address of the TF-Luna device