Page 1 of 1

How to add a shortcut to Mode Button

Posted: Fri Jan 26, 2018 7:16 am
by ltpitt
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!

Re: How to add a shortcut to Mode Button

Posted: Fri Jan 26, 2018 9:46 am
by wermy
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

Re: How to add a shortcut to Mode Button

Posted: Fri Jan 26, 2018 3:22 pm
by ltpitt
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...

Re: How to add a shortcut to Mode Button

Posted: Fri Jan 26, 2018 5:47 pm
by HoolyHoo
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.

Re: How to add a shortcut to Mode Button

Posted: Fri Feb 16, 2018 3:41 pm
by ltpitt
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 :)