serial
Posts: 17
Joined: Tue Mar 01, 2016 2:10 am

Controlling initial state of GPIO

Thu Jul 12, 2018 1:35 am

Hello,

How can I set a initial state of GPIO?
I want to pull down the GPIO immediately after start-up.

best regards,

User avatar
joan
Posts: 13669
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Controlling initial state of GPIO

Thu Jul 12, 2018 6:44 am

Look at the gpio directive used within the /boot/config.txt file.

Note that this directive is not the same as wiringPi's gpio command.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 21333
Joined: Sat Jul 30, 2011 7:41 pm

Re: Controlling initial state of GPIO

Thu Jul 12, 2018 9:21 am

This will be worth a read. I've posted github link as this is a pending change to the docs.

https://github.com/raspberrypi/document ... uration.md
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

Return to “Beginners”