TWI Driver

Properties

Property Description

Disabled

To disable or enable this block.

Name

The name of this block.

Comment

To optionally enter a comment.
It does not impact the generated firmware.

A TWI (two-wire interface) or I2C) driver is used to connect TWI devices.

Connect the serial clock (SCL) and serial data pins (SDA) of the sensor to the corresponding sockets on your development board.

If you are not sure, look up which pins to use in the documentation of your development board.

There is no need to specify any of the communication; the TWI blocks (for example [GY-30 light sensor]({{< ref "gy-30" >}})) do all that work.

You can use more than one TWI device. It’s a good idea to add them one by one.