The testbed shown below, implemented on the Adafruit Pi Dish, is used for test and demonstration of function blocks for Raspberry Pi GPIO.
-
As shown below, Pin 3 (
GPIO2
) of the GPIO header is connected via an orange jumper to the anode of a yellow LED, whose cathode is connected to ground through a resistor R.-
This pin will be configured as a GP output using an instance of
the
DO_PI
function block type. - Since this LED is an older, less efficient type, the resistance of R is chosen to be 100Ω, which gives a current of 9.7mA with a voltage of 2.95V at Pin 3.
-
This pin will be configured as a GP output using an instance of
the
-
Pin 5 of the header (
GPIO3
) is connected via a green jumper to one side of a green pushbutton, whose other side is connected to ground.-
This pin will be configured as a GP input with a built-in pullup
resistor using an instance of the
DI_PI
function block type.
-
This pin will be configured as a GP input with a built-in pullup
resistor using an instance of the

