55. LED Toggling Using I2C

Establish I2C communication between any two microcontrollers, with one as a master and the other as a slave.

Connect a push-button switch to the master and an LED to the slave. 

Toggle the state of the LED by pressing the push-button switch.

Example using two Arduino Boards

Submit Your Solution

Note: Once submitted, your solution goes public, helping others learn from your approach!