Activity 3: Serial communication protocols
2. Build the electronic shown on page 2;
3. Considering the Arduino connected to the LED as the master and that the one connected to the push button as the slave, write 2 text codes (one on the master side and one on the slave side) that enables the master and the slave to communicate using the I2C protocol. Please see below the communication steps that need to be implemented using the I2C protocol:
1. Master requests the status of digital pin 4 (S_Pin4) of the slave device;
2. Slave reads the status of its digital pin 4 (S_Pin4), displays it on the serial monitor and communicates it to the Master;
3. The master compares the status of S_Pin4 of the slave to “0” and implements the logic below:
If S_Pin4 >0; LED is switched “On”;
If S_Pin4 <0; LED is switched “Off”;

2. Build the electronic shown on page 2;
3. Considering the Arduino connected to the LED as the master and that the one connected to the push button as the slave, write 2 text codes (one on the master side and one on the slave side) that enables the master and the slave to communicate using the I2C protocol. Please see below the communication steps that need to be implemented using the I2C protocol:
1. Master requests the status of digital pin 4 (S_Pin4) of the slave device;
2. Slave reads the status of its digital pin 4 (S_Pin4), displays it on the serial monitor and communicates it to the Master;
3. The master compares the status of S_Pin4 of the slave to “0” and implements the logic below:
If S_Pin4 >0; LED is switched “On”;
If S_Pin4 <0; LED is switched “Off”;
