Page 1 of 1

Change pins Tinkerboy powerswitch

Posted: Mon Oct 28, 2019 12:25 pm
by matt2mi
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 :? :?

Re: Change pins Tinkerboy powerswitch

Posted: Mon Oct 28, 2019 4:25 pm
by infinitLoop
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.
.

Re: Change pins Tinkerboy powerswitch

Posted: Tue Oct 29, 2019 1:01 am
by matt2mi
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 !! :)