GPIO
Controlling GPIO through the command line
Exporting GPIO pins
gpio_number = ((gpio_bank - 1) * 32) + gpio_pingpio_number = ((1 - 1) * 32) + 12
gpio_number = (0) + 12
gpio_number = 12$ sudo echo 12 > /sys/class/gpio/exportChanging the pin direction
Reading or Writing the GPIO pin value
Controlling GPIO programmatically (in C)
Prerequisites
Source Code
Last updated