I2C Communication
Last updated
Was this helpful?
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.
Upon a request, the slave responds with a message containing a slaveCallbackIndex. The master uses this ID to select the corresponding callback function.
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
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?
Was this helpful?
