Pro Mini: blink
The Pro Mini’s real ATmega328P blinks LED 13 and counts its uptime.

The code
// Arduino Pro Mini (5 V, 16 MHz): the real ATmega328P, as on the Uno. LED 13 blinks and
// the uptime goes to Serial (the TXO pin; the Lab shows it in Serial).
void setup() {
Serial.begin(9600);
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
digitalWrite(LED_BUILTIN, HIGH);
delay(500);
digitalWrite(LED_BUILTIN, LOW);
delay(500);
Serial.print("Up ");
Serial.print(millis() / 1000);
Serial.println(" s");
}
More like this

Nano blink
The same Blink on an Arduino Nano, its LED on D13.
ArduinoArduino Nano

Two Unos over serial
Two boards, each with its own program: the first sends "ping" every half second, the second toggles its LED and answers "pong". Pick a board above the code to see its program; its serial monitor has a tab.
ArduinoArduino Uno

Two Unos over I2C
Board 1 is the I2C controller (Wire.begin()), board 2 a target at address 8 (Wire.begin(8)). Board 1 sends its knob ten times a second; board 2 sets its LED to it and answers how many it has had.
ArduinoArduino Uno