The Serial Peripheral Interface (SPI) is a synchronous, full-duplex, master-slave communication protocol used for short-distance communication between microcontrollers and peripherals (like Sensors, Displays, and Flash memory).
It is known as a 4-wire interface because it typically uses four distinctive lines: Clock (SCLK), Master Out (MOSI), Master In (MISO), and Chip Select (CS).