serial
Posts: 15
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: 13540
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: 20267
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.
Please direct all questions to the forum, I do not do support via PM.

Return to “Beginners”

Who is online

Users browsing this forum: Andyroo, Bing [Bot], chrispazz, Stefanmz7 and 40 guests