Comments (7)
I just went through the code last night and found what's going on. Retrogame is pulling the inputs high and reading them as active_low.
Is there any way to reverse this logic? Can I have it start low and read active_high??
from adafruit-retrogame.
Around line 330:
gpio[GPPUD] = 2; // Enable pullup
Change the value to '1' to enable pull-down (instead of pull-up).
You'll then need to look through the code for references to the intstate[] array -- reverse the '0' and '1' checks on the 'c' variable following the read() call.
from adafruit-retrogame.
Thanks. I'll look through the code tonight and let you know how it goes.
from adafruit-retrogame.
Changed the code as described and works great. I was going to use some logic inverters for the circuit if it was too hard to change the code, but it looks like I won't be needing them.
from adafruit-retrogame.
Sorry to necromance an old closed issue but:
My arcade recently needed an overhaul and I updated retrogame to the latest version. How can I achieve the same effect with the new version?
from adafruit-retrogame.
The code has gotten rather hairy as of late in order to support I2C port expanders. Trying to make the same changes is the path to madness.
If the old version did what you needed, I'd suggest sticking with it. There've been no performance improvements, just added features for some current and future projects.
If you didn't back that up, click the "commits" link (above the repository file list) and locate a version of the code of similar vintage, then make the described changes.
from adafruit-retrogame.
I do have a backup of my previous installation, I'll just stick with that, then. Thanks for the quick reply!
from adafruit-retrogame.
Related Issues (20)
- Make install should copy and not move executable
- "Reverse" input for some buttons
- PS3 controller same player
- Lacks Support for Eight Buttons
- Support for Non Retro Pie Builds
- GPIO onb PI3a+ HOT 4
- Could we get a license for this? HOT 1
- How to use in Batocera (or Recalbox) HOT 1
- Buttons "misconfigured" in game HOT 1
- Issues with pi3a+ on gpio 19 and 20
- It is possible more than one combo?
- two inputs from one GPIO
- python option
- not installing
- Allow me forking to directly attach C64 keyboard?
- retrogame how to work at Kernel 5.4 ? HOT 1
- Retrogame No Raspberry Pi 4 Model B support
- Any way to use this joystick with this project?
- i2s audio dac blocked by retrogame HOT 1
- Emulating keyboard doesn't work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adafruit-retrogame.