Replies: 1 comment
-
|
That indeed looks like it needs a fix. I'll have a look at that. Thanks for reporting |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I’ve wanted to recreate this cool Galagino project for a while, but first I wanted the software to work properly on the hardware. That turned out to be quite tricky for me. After a lot of trial and error, I finally got it working.
However, I had an issue with the coin button: it gave credits but didn’t act as a boot button to return to the menu. If I left the coin button undefined, then the start button acted as both start and coin, allowing me to get back to the menu.
After quite some experimenting , I found something that looked not right to me. Now it works correctly: when playing a game, if I want to exit, I hold the coin button for more than 1 second and it returns to the menu.
This is what i changed:
Replace this:
#ifndef BTN_COIN_PIN
#ifdef BTN_COIN_PIN
input_states |= (!digitalRead(BTN_COIN_PIN)) ? BUTTON_EXTRA : 0;
#else
input_states |= (!digitalRead(BTN_START_PIN)) ? BUTTON_EXTRA : 0;
#endif
With this:
#ifdef BTN_COIN_PIN
input_states |= (!digitalRead(BTN_COIN_PIN)) ? BUTTON_EXTRA : 0;
#else
input_states |= (!digitalRead(BTN_START_PIN)) ? BUTTON_EXTRA : 0;
#endif
Are there others who experienced this problem? Is this a proper fix, or am I missing something causing the software to not work optimally.
Beta Was this translation helpful? Give feedback.
All reactions