Step 3Programming
We need to include the Wire library. This contains all the commands we need for using I2C.
For the Master:
Simply use Wire.begin() to start the I2C Bus on this Arduino as a Master.
For the Slave:
Use Wire.begin(address) to start the I2C Bus as a Slave.
Check the code to see basic examples of programming I2C.
| « Previous Step | Download PDFView All Steps | Next Step » |
![]() |
Add Comment
|







































