I2C Communication

Master request/send data

The master sends data to and requests data from slaves, including an 8-bit packet ID. Each slave uses this ID as an index into its callback function array to determine which function to execute.

Slave Return

Upon a request, the slave responds with a message containing a slaveCallbackIndex. The master uses this ID to select the corresponding callback function.

I2C Setup Master

The examples use the DOIT ESP32 DEVKIT V1 as the master. The ESP32 is connected to the Feelix motors through the Feelink board.

Default I2C pins on DOIT ESP32 DEVKIT are SCL GPIO22 SDA GPIO21 Alternatively you can use SCL GPIO32 SDA GPIO33

I2C Setup Slaves

The slaves can be connected with JSH cables to the FeeLink board. The 3.3V outputs do not have to be connected.

Last updated

Was this helpful?