Change pins Tinkerboy powerswitch

Having trouble with your GBZ build? Ask your questions here!
Post Reply
matt2mi
Posts: 21
Joined: Wed Sep 11, 2019 8:54 am
Has thanked: 5 times
Been thanked: 5 times

Change pins Tinkerboy powerswitch

Post by matt2mi » Mon Oct 28, 2019 12:25 pm

Hey,

I have this screen (http://www.pocketadventures.com/bundle_ili9341.asp)
and the tinkerboy powerswitch (https://www.tinkerboy.xyz/product/tinke ... -shutdown/).

They both need the 10 and 11 pins and I'm wonderring if I can choose different pins for the safe shutdown in the tinkerboy php script (https://www.tinkerboy.xyz/setup.php, line 146 & 147) ?

I saw a very good explanation about what means SCLK and MOSI here : https://raspberrypi.stackexchange.com/a/71897

But, what exactly does that mean speaking about safe shutdown ??

Hope someone knows what to do :? :?

User avatar
infinitLoop
Posts: 536
Joined: Mon Dec 24, 2018 11:46 am
Location: Portland, OR
Has thanked: 222 times
Been thanked: 199 times
Contact:

Re: Change pins Tinkerboy powerswitch

Post by infinitLoop » Mon Oct 28, 2019 4:25 pm

matt2mi wrote:
Mon Oct 28, 2019 12:25 pm
Hey,

I have this screen (http://www.pocketadventures.com/bundle_ili9341.asp)
and the tinkerboy powerswitch (https://www.tinkerboy.xyz/product/tinke ... -shutdown/).

They both need the 10 and 11 pins and I'm wonderring if I can choose different pins for the safe shutdown in the tinkerboy php script (https://www.tinkerboy.xyz/setup.php, line 146 & 147) ?

I saw a very good explanation about what means SCLK and MOSI here : https://raspberrypi.stackexchange.com/a/71897

But, what exactly does that mean speaking about safe shutdown ??

Hope someone knows what to do :? :?
you should be able to pick any unused pins for the tinkerboy swtich - just makes sure to adjust the config.txt settings accordingly. the safe shutdown just needs two digital signals, for the shutdown and keep-alive. it doesn't use the alt functionality, like the screen does.

just make sure not to pick one in 0-7 for the keep-alive, since those start high at boot, so they won't actually cut the power.
.

matt2mi
Posts: 21
Joined: Wed Sep 11, 2019 8:54 am
Has thanked: 5 times
Been thanked: 5 times

Re: Change pins Tinkerboy powerswitch

Post by matt2mi » Tue Oct 29, 2019 1:01 am

Hi Infinite !

Well, this was exactly the answer I hoped ! So thanks again for your help :D :D

And I continue this to plug the screen !! :)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest