You need to know the controller and the size of your display (Note: "Controllerless" displays are not supported by U8g2). In this example, we will use a ST7920 128x64 display. It has a ST7920 ...
In this quick Arduino tutorial I will explain how you can control a relay using the Arduino Board, one 1K and one 10K resistors, 1 BC547 transistor, one 6V or 12V relay, one 1N4007 diode and a 12V fan ...