shutdown command through Teensy

General GBZ-related chat goes here. Share ideas, tips and tricks, or ask questions that don't fit into the hardware/software help forums.
Post Reply
User avatar
kani97
Posts: 4
Joined: Wed Dec 06, 2017 9:25 am
Location: Sri Lanka
Has thanked: 1 time
Contact:

shutdown command through Teensy

Post by kani97 » Wed Dec 06, 2017 9:35 am

Hi guys,
Im currently working on a GBZ. Using a Teensy 2.0 as keyboard controller. I used the code given by wermy and its working perfect.
I was wondering If we can send a series of keystrokes to do the shutdown by just pressing a one push button connected to teensy?

Eg: F4 >> "sudo shutdown" >> "Enter"

After shutdown we can switch off the power supply manually.

Any ideas?

Thanks :)
:twisted: GBZ :twisted:

User avatar
TheHappiestBug
Posts: 75
Joined: Mon Jan 09, 2017 8:07 am
Has thanked: 22 times
Been thanked: 14 times

Re: shutdown command through Teensy

Post by TheHappiestBug » Fri Jan 12, 2018 6:25 am

I'd forgo the teensy for simplicity, and just do a single pushbutton through GPIO. I used this guide, it was very clear and it worked flawlessly:
https://pie.8bitjunkie.net/retropie-shu ... e-easy-way

Hope it goes well!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest