Dual/Redundant control Rig (2 Arduinos, LEDs, Buttons, Encoders

Code to turn LED on/off. Duplicate on each arduino.
Connect LED to arduino pins with 220 ohm resistor between anode and pin, with cathode to Ground.

// Turn on
pinMode(LED_PIN, OUTPUT);
digitalWrite(LED_PIN, HIGH);


// Turn off
pinMode(LED_PIN, INPUT);
digitalWrite(LED_PIN, LOW);

Not tested but it should work.