MrBool
Posts: 136
Joined: Sat Jul 05, 2014 9:51 am

config.txt - gpio command and GPIO Filter

Wed Sep 15, 2021 1:32 pm

Does gpio command in config.txt work immediately or after all config.txt load?

I need to use GPIO filter in config.txt but before filtering, change GPIO to input pull down and after filtering change GPIO to output pull up and next set as a gpio-poweroff pin.

Example:

Code: Select all

gpio=4=in
gpio=4=pd

[gpio4=1]
# Settings here are applied if GPIO 4 is high

[gpio4=0]
# Settings here are applied if GPIO 4 is low

[all]

gpio=4=out
gpio=4=pu

dtoverlay=gpio-poweroff,gpiopin=4,active_low="y"

Will the filter be read GPIO with pull down and after filter the GPIO will be output pull up?

Return to “Interfacing (DSI, CSI, I2C, etc.)”