43. LED Toggling Using I2C

Establish I2C communication between two Arduino Uno boards, with one as the master and the other as the 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.


Note: In case you don’t have two Arduino UNO boards you can use any other compatible microcontroller as a slave.

Submit Your Solution