Assuming you install the Raspberry Pi version of Debian on your Raspberry Pi, it installs a configuration tool called raspi-config. You run it by issuing the following command: –
sudo raspi-config
The following screen is then displayed: –
To enable access to the GPIO pins, option number 3 is selected, and then the following screen is displayed: –
You can then select the options you need for your specific use case. Typically, I enable the following: –
- 1-Wire – this is used for many devices but is typically used for temperature sensors of various types
- I2C – used for more complex devices, including TFT screens
- SPI – used to communicate with sensors, SD cards, and other serial communications devices
After making changes to these settings, reboot the Raspberry Pi.