Jump to content

Stijn Van Orshaegen

New Members
  • Posts

    14
  • Joined

  • Last visited

Stijn Van Orshaegen's Achievements

Space Invader

Space Invader (2/9)

0

Reputation

  1. yeah well ... i'm totaly lost now the buttons i am using now, and exept of button B they all work. on gpio pins: UP = 21 DOWN =17 LEFT = 27 RIGHT = 22 START ( restart button ) = 20 SELECT ( option 2 ) = 19 A-button = 16 B-button = 26 at the momentn but not funtioning on other pins either, multimeter says ok. my retrogame.cfg LEFT 27 # Joypad left RIGHT 22 # Joypad right UP 4 # Joypad up DOWN 17 # Joypad down LEFTCTRL 21 # 'A' button LEFTALT 25 # 'B' button Z 26 # 'X' button X 16 # 'Y' button GND 9 # Spare ground point for 'Y' button SPACE 19 # 'Select' button ENTER 20 # 'Start' button ESC 6 # Hold Start+Select to exit ROM my retrogame.c { 27, KEY_LEFT }, { 22, KEY_RIGHT }, { 4, KEY_UP }, { 17, KEY_DOWN }, { 26, KEY_Z }, { 16, KEY_X }, { 20, KEY_ENTER }, { 21, KEY_B }, { 19, KEY_SPACE }, { 6, KEY_ESC } }; and again thank you for your help and now that i have severe dyslexia, ccan you see what i am doing wrong and maybe correct it for me ? maybe the B needs another point and configuration ?
  2. ok, got it to work, only i cannot get key 5 ( key z ) = B, key 6 ( esc ) = option 2 ,and key 4 (up ) to work somehow, yet the multimeter says they make contact when preessing soldered to the pins. on, power and option 1 do not make contact at all on the lynx, but for the moment they wont be needed, maybe later or do they work in another way ? this i my retrogame setup all soldered to the corresponding pins... # Here's a 6-button configuration: LEFT 27 # Joypad left RIGHT 22 # Joypad right UP 4 # Joypad up DOWN 17 # Joypad down LEFTCTRL 21 # 'A' button LEFTALT 25 # 'B' button Z 5 # 'X' button X 16 # 'Y' button GND 9 # Spare ground point for 'Y' button SPACE 19 # 'Select' button ENTER 20 # 'Start' button ESC 6 # Hold Start+Select to exit ROM nearly there... and what is spare ground button for Y ? ( thinking this is probably for your LYNX 1 , right ? ) soldering up to LEFTCTRL gave me a functioning button , soldering B to LEFTALT did nothing
  3. so back from the dead , sorry needed to let it rest for a while . if you dont mind, could you tell me where you soldered the resistor ?
  4. still something wrong and i see that the retrogame.sh still has the earlier date from a few days ago, schouldnt this also be newly created ?
  5. pi@retropie:~/Adafruit-Retrogame $ sudo cp retrogame /usr/local/bin cp: cannot create regular file '/usr/local/bin/retrogame': Text file busy pi@retropie:~/Adafruit-Retrogame $
  6. ok, found it with the wich retrogame command ,now i cannot seem to replace the file ( sftp ) permission denied. any way to do it with commands ?
  7. pi@retropie:~/Adafruit-Retrogame $ sudo retrogame retrogame: Config file is '/boot/retrogame.cfg' retrogame: Loading config retrogame: virtual key 105 assigned to GPIO10 retrogame: virtual key 106 assigned to GPIO22 retrogame: virtual key 103 assigned to GPIO23 retrogame: virtual key 108 assigned to GPIO27 retrogame: virtual key 29 assigned to GPIO04 retrogame: virtual key 56 assigned to GPIO25 retrogame: virtual key 44 assigned to GPIO11 retrogame: virtual key 45 assigned to GPIO05 retrogame: GPIO06 assigned GND retrogame: virtual key 57 assigned to GPIO16 retrogame: virtual key 28 assigned to GPIO26 retrogame: virtual key 1 has GPIO bitmask 00000000000000004010000 retrogame: debug level 99 retrogame: uidev init OK retrogame: SDL2 init OK retrogame: Entering main loop and already stuck here for a while
  8. this is what i get : pi@retropie:~ $ cd Adafruit-Retrogame pi@retropie:~/Adafruit-Retrogame $ make gcc -Wall -O3 -fomit-frame-pointer -funroll-loops -s retrogame.c -o retrogame strip retrogame pi@retropie:~/Adafruit-Retrogame $
  9. ok big thank you for sticking with me for this, but this where i get lost and don't see the woods trough the trees anymore... english is not my main language and somehow i fail to look up the tutorial for this. i understand the buttons and that i need to add keys, i can also then change the keys with the numbers that i already soldered to the points , right ? or is it easier to just use your key setup and add ? how do i use the make ( is it the makefile ? ) command and how do i get it on the raspberry pi ? so for now i just added KEY A and i think that makes us even and i am, ready to test, the worst that can happen is wrong buttons. #define GND -1 struct { int pin; int key; } io[] = { // Input Output (from /usr/include/linux/input.h) { 27, KEY_LEFT }, { 22, KEY_RIGHT }, { 4, KEY_UP }, { 17, KEY_DOWN }, { 5, KEY_Z }, { 16, KEY_X }, { 20, KEY_ENTER }, { 21, KEY_B }, { 19, KEY_SPACE }, { 26, KEY_A }, { 6, KEY_ESC } };
  10. buttons are constantly pressed without pressing the buttons( it keeps rotating all buttons and slows down when i press ), so i think i need to install your source code to switch 1 with 0
  11. i use putty to connect to the pi, i am wired directly to my router and it says the system is up to date. could is be the gpiozero is offline ? search comes up empty. did a test at this adress and that it finds it. curl https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/retrogame.sh >retrogame.sh i did not install this again, just to see if it finds it ) i'm just going to do a fresh install of retropie, install the retrogame manually this time and not from a premade image. then will try your steps again
  12. i cannot install the gpiozero, i get, E: Unable to locate package python-gpiozero is it ok to just sftp the lynxpins.py to the home folder? i cannot get it to find it at my ip... keeps searching...
  13. ok ,thank you. i forgot to mention that i have absolutely no experience in compiling... i downloaded a retropie version that has the retrogame preinstalled and i have used it already in my raspberry pi gameboy that i made some time ago. any chance to point me to the "how to"? i kan putty to the pi, but really understanding the system is another thing... i have a box of all kinds of resistors so what value did you use and where did youy solder it to ? so i'm in the pi with ssh, but how do i install your source ?
  14. lets see if i can revive this topic as i am in need of some help. big cudos for the lynx 2 project, i am trying to build one myself but i am stuck with the ribbon cable. it seems the signal between the ribbon pads is not strong enough on my lynx 2 i think, when connecting to ground and connecting + pressing the buttons i do not get a clean signal, yes it sets a little value but no beeping betwen the connections, not strait on the ribbon and not with the connector. when i put the the wires to a usb controller board it works, but i would like to get it working on the gpio. the only buttons not responding are ON and OFF on the controller. also, wich cable drives the LED ? ( i have cut out the board connector ) retrogame config driver is installed and this is how i wired it . LEFT 4 # Joypad left RIGHT 19 # Joypad right UP 16 # Joypad up DOWN 26 # Joypad down LEFTCTRL 14 # 'A' button LEFTALT 15 # 'B' button Z 20 # 'X' button X 18 # 'Y' button SPACE 5 # 'Select' button ENTER 6 # 'Start' button A 12 # Left shoulder button S 13 # Right shoulder button ESC 17 # Exit ROM; PiTFT Button 1 controls get undetected. is there a way i could fix this ? am i missing something ? or maybe i cannot connect it strait away and i need a resistor or something ? would you be so kind to help me ? i would like to keep the lynx 2 as original as possible on the outside and just use it as an 8bit 2 button only console and maybe get it to switch from left to righthand mode ( if possible ) wire setup has hcanged since the picture, all connections make good contact withe the connector cable, but even measuring on the flat cable does not give me a signal sound. it is not an spi screen, its with hdmi .
×
×
  • Create New...