Main Content

GPIO Pins

Use the Raspberry Pi®’s GPIO pins

Objects

raspiConnection to Raspberry Pi board

Functions

configurePinConfigure GPIO pin as digital input, digital output, or PWM output
readDigitalPinRead logical value from GPIO input pin
writeDigitalPinWrite logical value to GPIO output pin
showPinsShow diagram of GPIO pins

Examples and How To

Concepts

Troubleshooting

Troubleshoot Raspberry Pi GPIO Pins

Troubleshoot GPIO pins on Raspberry Pi hardware.