The Raspberry PI GPIO board is the most convenient way to directly connect to an RPi, either by plugging the RPi GPIO header directly into the sub-board or by using an extension cable. An extension cable is necessary to connect a Raspberry Pi 400.