How to add a shortcut to Mode Button

Having trouble with your GBZ build? Ask your questions here!
Post Reply
ltpitt
Posts: 22
Joined: Tue Oct 10, 2017 5:20 pm
Has thanked: 1 time
Been thanked: 1 time

How to add a shortcut to Mode Button

Post by ltpitt » Fri Jan 26, 2018 7:16 am

Hello there,

Is it possible to add a custom shortcut to mode button?

I would like to do something like Mode + A + B = kill pico8

If you can simply point me to the file handling this I think I can work on the implementation :)

Thanks!

User avatar
wermy
Site Admin
Posts: 1346
Joined: Tue May 03, 2016 8:51 pm
Has thanked: 620 times
Been thanked: 1322 times
Contact:

Re: How to add a shortcut to Mode Button

Post by wermy » Fri Jan 26, 2018 9:46 am

What kind of controls are you using? If it's GPIO it's pretty simple to set up a python script that watches the states of gpio pins and does a thing. If you're using an arduino acting as a keyboard then this is something I've looked at for projects in the past: https://github.com/wertarbyte/triggerhappy
ImageImageImageImage

ltpitt
Posts: 22
Joined: Tue Oct 10, 2017 5:20 pm
Has thanked: 1 time
Been thanked: 1 time

Re: How to add a shortcut to Mode Button

Post by ltpitt » Fri Jan 26, 2018 3:22 pm

Hi there and thanks for your help!

I am using SuperAIO with Raspberry Zero.

It already has a mode button (enable / disable wifi and other things) so I guess there must be a script somewhere handling that...
I just do not know where...

User avatar
HoolyHoo
Posts: 766
Joined: Sat Jul 09, 2016 9:34 pm
Has thanked: 206 times
Been thanked: 741 times

Re: How to add a shortcut to Mode Button

Post by HoolyHoo » Fri Jan 26, 2018 5:47 pm

ltpitt wrote:
Fri Jan 26, 2018 3:22 pm
Hi there and thanks for your help!

I am using SuperAIO with Raspberry Zero.

It already has a mode button (enable / disable wifi and other things) so I guess there must be a script somewhere handling that...
I just do not know where...
Take a look at Kite’s source files on his github page. You would need to modify the raspberry pi python script and the Arduino sketch which handles the mode button. Also the atmega chip on his board would need to be reflashed.

ltpitt
Posts: 22
Joined: Tue Oct 10, 2017 5:20 pm
Has thanked: 1 time
Been thanked: 1 time

Re: How to add a shortcut to Mode Button

Post by ltpitt » Fri Feb 16, 2018 3:41 pm

Hello there!

I was able to find the file you suggested here:
https://github.com/kiteretro/Super-AIO/ ... aio-osd.py

I would be ok with not changing the Arduino sketch and trigger my script using the already existing WiFi Off combination.

If I got this right I'd need to change saio-osd.py and then make it executable before copying it to the Pi.

Question is...
How can I make saio-osd.py executable like the one that I find in the SuperAIO?

Thanks :)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest