Skip to content

Using GPIOs at boot time

Micz Flor edited this page Oct 29, 2020 · 2 revisions

How to use GPIO at boot time

e.g. for blinking LEDs or status LED

Usually it takes the Raspberry some 10 seconds to boot up and execute some customisation scripts to run. But there is an easy way to set GPIOs early in the loading process. e.g. to enable GPIO12 in /boot/config.txt add the line

#Set GPIO12 to be an output set to 1
gpio=12=op,dh

This will enable GPIO12 in the first seconds after power on. It will stay that way until Raspbian is ready and an other script changes GPIO settings.

Source: GPIO control in config.txt - Raspberry Pi Documentation

Home

πŸ”₯ Version 3

Version 3 Pages

Nothing yet

🎢 Version 2

Version 2 Pages

Installation

Specials

RFID Reader

Sound card configurations

Hardware Buttons

Displays (LED, LCD, Matrix, etc.)

Hacks

Bluetooth

AirPlay

MPD tricks

For Developers

Clone this wiki locally