Go to advanced search

by marqs
Mon Dec 10, 2018 9:09 pm
Forum: Gaming
Topic: Multi-console gamepad driver for GPIO
Replies: 482
Views: 130621

Re: Multi-console gamepad driver for GPIO

Have you double-checked that clock and latch lines are connected the right way? If they are reversed, the end result could be something like your initial description.
by marqs
Sun Dec 02, 2018 10:25 pm
Forum: Gaming
Topic: Multi-console gamepad driver for GPIO
Replies: 482
Views: 130621

Re: Multi-console gamepad driver for GPIO

In jstest, when i press B button on my snes pad, all button become in on state and when I release the B button on my snes pad all return to off state. When I press any other button on the snes pad nothing appen. I recall some people had similar issue until they added 3.3V->5V level shifters on cloc...
by marqs
Mon Nov 05, 2018 9:12 pm
Forum: Gaming
Topic: Multi-console gamepad driver for GPIO
Replies: 482
Views: 130621

Re: Multi-console gamepad driver for GPIO

On closer inspection a few other changes are also needed. I replaced hard-coded values on the functions and uploaded the code to a test branch. With that it should be enough to just change the IDs inside "enum pad_gpios" and "enum common_gpios". The code compiles OK but it'll take a while until I ca...
by marqs
Sat Nov 03, 2018 11:01 pm
Forum: Gaming
Topic: Multi-console gamepad driver for GPIO
Replies: 482
Views: 130621

Re: Multi-console gamepad driver for GPIO

Hello. I use RetroPie 4.4 and output video to 15 Khz Arcade Cabinet with VGA 666. I tried changing GPIO pins using the source code previously written in this forum , But it was not able to work with the current version gamecon_gpio_rpi-1.3. I would like to use 3 SNES controllers, and available GPIO...
by marqs
Mon Aug 13, 2018 4:17 pm
Forum: Gaming
Topic: Multi-console gamepad driver for GPIO
Replies: 482
Views: 130621

Re: Multi-console gamepad driver for GPIO

You'll have to update/downgrade kernel to match raspberrypi-kernel-headers version (4.14.52):

Code: Select all

sudo rpi-update 963a31330613a38e160dc98b708c662dd32631d5
by marqs
Mon Apr 09, 2018 4:17 pm
Forum: Gaming
Topic: Multi-console gamepad driver for GPIO
Replies: 482
Views: 130621

Re: Multi-console gamepad driver for GPIO

It looks like the new rendition makes it easy to change what GPIO pin you want to use, But I still cant recompile it, keep getting errors. Brand new fresh RetroPI image, updated everything, then in to edit the code to pick my pins, compile it and install gamecon driver, and it just gives me error 2...
by marqs
Thu Dec 07, 2017 4:51 pm
Forum: Gaming
Topic: Multi-console gamepad driver for GPIO
Replies: 482
Views: 130621

Re: Multi-console gamepad driver for GPIO

Thank you for the link...noob question....how do you know what kernel header package to use? I have been using a 2016 Jessie OS...so would the most recent kernel header package work? You need a header package matching your kernel version. If raspberrypi-kernel-headers package does not provide it, y...
by marqs
Fri Dec 01, 2017 11:31 pm
Forum: Gaming
Topic: Multi-console gamepad driver for GPIO
Replies: 482
Views: 130621

Re: Multi-console gamepad driver for GPIO

Is there a standalone version of the Db9 driver (not tied to RetroPie) that I can use for another project? If so, how do I setup it up? I have been using the App game kit (AGK) software for a project. I have been using the joystick support for input. With the Db9 driver I would be able to use the G...
by marqs
Sun Nov 05, 2017 6:54 pm
Forum: Gaming
Topic: Multi-console gamepad driver for GPIO
Replies: 482
Views: 130621

Re: Multi-console gamepad driver for GPIO

raspberrypi-kernel-headers package (1.20170703-1) seems to install headers for 4.9.35-v7+. If you install the package from stretch repo (1.20171029-1), it installs headers for 4.9.59-v7+.
by marqs
Sat Nov 04, 2017 11:07 pm
Forum: Gaming
Topic: Multi-console gamepad driver for GPIO
Replies: 482
Views: 130621

Re: Multi-console gamepad driver for GPIO

Could you post output of the following commands?

Code: Select all

dpkg -l |grep linux-headers
ls /lib/modules
by marqs
Thu Nov 02, 2017 11:10 pm
Forum: Gaming
Topic: Multi-console gamepad driver for GPIO
Replies: 482
Views: 130621

Re: Multi-console gamepad driver for GPIO

Have you installed kernel headers for 4.9.59-v7? Retropie installation script should install them automatically, but header package for that kernel seems to have been auto-built only yesterday.
by marqs
Mon Aug 28, 2017 3:42 pm
Forum: Gaming
Topic: Multi-console gamepad driver for GPIO
Replies: 482
Views: 130621

Re: Multi-console gamepad driver for GPIO

The problem is that there are numerous applications that do not support hat axis but require (analog) axis0 and axis1 to be present, even if they are processed as digital axis. A driver configuration option could be considered, but on the other hand it'd make more sense for the frontend to support b...
by marqs
Sun Aug 27, 2017 8:52 pm
Forum: Gaming
Topic: Multi-console gamepad driver for GPIO
Replies: 482
Views: 130621

Re: Multi-console gamepad driver for GPIO

Updated packages for gamecon_gpio_rpi (1.3) and db9_gpio_rpi (1.1) have now been released which should fix the build issues. I also put sources and dkms scripts on github (here and here), making it easier for others to make changes in future.
by marqs
Fri Aug 18, 2017 11:43 pm
Forum: Gaming
Topic: Multi-console gamepad driver for GPIO
Replies: 482
Views: 130621

Re: Multi-console gamepad driver for GPIO

Seems like I haven't received notifications from this thread for a while :( . I probably should put gamecon_gpio_rpi and db9_gpio_rpi driver sources to github if there are people who would be interested continuing development since I haven't touched those in a long time. @DD-Indeed: You should use 3...
by marqs
Fri Dec 30, 2016 8:36 pm
Forum: Gaming
Topic: Multi-console gamepad driver for GPIO
Replies: 482
Views: 130621

Re: Multi-console gamepad driver for GPIO

Below is a list of changes you can apply to /usr/src/gamecon_gpio_rpi-1.2/gamecon_gpio_rpi.c to change gpio ids to following: GPIO22: Gamepad3 GPIO23: Gamepad4 GPIO25: snes_clk GPIO27: snes_latch lines 116-117: static const int gc_status_bit[] = { 0x01, 0x02, (1<<22), (1<<23), 0x04, 0x08 }; static c...
by marqs
Thu Dec 22, 2016 11:19 pm
Forum: Gaming
Topic: Multi-console gamepad driver for GPIO
Replies: 482
Views: 130621

Re: Multi-console gamepad driver for GPIO

yes sir Marqs. you are right in your presumption in your A2. I previously configured Generic USB Gamepad. I configured USB first, I think that is why I'm having problems? I tried to map my driver using map=0,0,0,0,7,0 and still 0/0 PSX Gamepad Configured appears when I try to launch a PSX game the ...
by marqs
Mon Dec 12, 2016 7:05 pm
Forum: Gaming
Topic: Multi-console gamepad driver for GPIO
Replies: 482
Views: 130621

Re: Multi-console gamepad driver for GPIO

hi sir Marqs, I'm a Raspberry Pi 2 Model B+ user and currently using Retropie. I'm having trouble connecting my PSX GamePad SCPHC1200 to Pi using GPIO. Edit: I only have one gamepad. Q1: how do I map driver properly? currently using map=0,0,0,0,7,7 Q2: why is my Retropie detecting 2 Gampeds, (1) US...
by marqs
Tue Aug 23, 2016 10:29 pm
Forum: Gaming
Topic: Multi-console gamepad driver for GPIO
Replies: 482
Views: 130621

Re: Multi-console gamepad driver for GPIO

It looks like gcc itself is segfaulting. I just tried installing the headers for original Pi (also armv6l) and it went just fine (with gcc 4.9.2). You might try running "make -C /usr/src/linux-headers-4.4.16+ modules_prepare V=1" to get a better idea where it fails. So, I finaly got around to try y...
by marqs
Mon Aug 08, 2016 9:20 pm
Forum: Gaming
Topic: Multi-console gamepad driver for GPIO
Replies: 482
Views: 130621

Re: Multi-console gamepad driver for GPIO

So, now I've got a segfault instead... :-( Generating include/generated/mach-types.h CC kernel/bounds.s CHK include/generated/bounds.h UPD include/generated/bounds.h CHK include/generated/timeconst.h Segmentation fault Kbuild:66: recipe for target 'include/generated/timeconst.h' failed make[1]: ***...
by marqs
Thu Aug 04, 2016 9:46 pm
Forum: Gaming
Topic: Multi-console gamepad driver for GPIO
Replies: 482
Views: 130621

Re: Multi-console gamepad driver for GPIO

Seems like you don't have bc installed. Try running "sudo apt-get install bc" before installing the headers.
by marqs
Mon Aug 01, 2016 4:44 pm
Forum: Gaming
Topic: Multi-console gamepad driver for GPIO
Replies: 482
Views: 130621

Re: Multi-console gamepad driver for GPIO

Where can I find kernel headers matching the kernel and gcc versions of the latest RetroPI distribution? Is it possible to upgrade kernel on RetroPI (e.g. using rpi-update)? I just updated the script which generates kernel headers to omit gcc-4.7 depedency so they should install now fine if you hav...
by marqs
Wed Jul 06, 2016 10:40 pm
Forum: Gaming
Topic: Multi-console gamepad driver for GPIO
Replies: 482
Views: 130621

Re: Multi-console gamepad driver for GPIO

Do you have an idea on what I could do to prevent these readings? I actually don't need a solution, turns out I only have 1 controller that doesn't work with 3.3V. I'm just interested in the problem and the solution When you don't have a controller connected, input pin of 74LVC245 is floating and t...
by marqs
Sun May 22, 2016 9:30 pm
Forum: Gaming
Topic: Multi-console gamepad driver for GPIO
Replies: 482
Views: 130621

Re: Multi-console gamepad driver for GPIO

I'm trying to use psx controllers using gamecon and i ran into some problems. Using 0.9 the controllers work except for the left analog stick, After reading that 1.2 should fix this, i installed 1.2 but instead the controllers refused to work at all, altough sometimes evtest returned some input spo...
by marqs
Sat May 07, 2016 8:50 pm
Forum: Gaming
Topic: Multi-console gamepad driver for GPIO
Replies: 482
Views: 130621

Re: Multi-console gamepad driver for GPIO

I am planning to build myself a little gaming console with the Rpi 3 using retropie and I would really like to be able to use my snes (and potentially others) game pads with it, partially to get the least amount of latency (compared to usb), partially for the novelty of it and partially to have it ...
by marqs
Tue May 03, 2016 9:04 pm
Forum: Gaming
Topic: Multi-console gamepad driver for GPIO
Replies: 482
Views: 130621

Re: Multi-console gamepad driver for GPIO

Hi. I'm used latest 3.7 retropie. I have joystick connected and working when used: modprobe --first-time db9_gpio_rpi map=1. When i reboot my RPi2, driver not loaded. I must start each time manually with modprobe then working ok. my etc/modules # /etc/modules: kernel modules to load at boot time. #...

Go to advanced search