Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Don't Working GPIO Joypad on OPi Zero...
#1
Hi.
I want to make GB Zero using Opi Zero.
I am blocked from connecting the controller to the GPIO.
I've been halfway through it, but I can not go any further.
I need your advice.

RetrOrangePi v4.2 Full version has a bug and I'm working on 4.1.
It works well on my first controller autoconfiguration and works fine on ES.
But when I play Game, the controller does not work at all.

I do not know how to find the cause.
(I trying edit "/opt/retropie/configs/all/retroarch.cfg")
I looked for a clue that did not work and gave up.

I'd like a little clue.
Thanks!





<<<<   tz_gpio_controller.py   >>>>>

#--------------- define botoes -----------------
# ---- PLAYER 1 ---------#
bt_up_p1 = port.PA12
bt_down_p1 = port.PA11
bt_left_p1 = port.PA6
bt_right_p1 = port.PA1

bt_l_p1 = port.PA0
bt_x_p1 = port.PA3
bt_y_p1 = port.PA10
bt_r_p1 = port.PA2
bt_b_p1 = port.PA18
bt_a_p1 = port.PA19

bt_select_p1 = port.PA7
bt_start_p1 = port.PG7

bt_left_trigger_p1 = port.PG6
bt_right_trigger_p1 = port.PA19



<<<<<<<<<<< mapping.h >>>>>>>>>>>>>>>>

gpio_t gpio[] = {

    {"gpio1",
        {
            {   "PA12",  SUNXI_GPA(12),  3   },
            {   "PA11",  SUNXI_GPA(11),  5   },
            {   "PA6",   SUNXI_GPA(6),   7   },
            {   "PA1",   SUNXI_GPA(1),   11  },
            {   "PA0",   SUNXI_GPA(0),   13  },
            {   "PA3",   SUNXI_GPA(3),   15  },
            {   "PA15",  SUNXI_GPA(15),  19  },
            {   "PA16",  SUNXI_GPA(16),  21  },
            {   "PA14",  SUNXI_GPA(14),  23  },
            {   "PG6",   SUNXI_GPG(6),   8   },
            {   "PG7",   SUNXI_GPG(7),   10  },
            {   "PA7",   SUNXI_GPA(7),   12  },
            {   "PA19",  SUNXI_GPA(19),  16  },
            {   "PA18",  SUNXI_GPA(18),  18  },
            {   "PA2",   SUNXI_GPA(2),   22  },
            {   "PA13",  SUNXI_GPA(13),  24  },
            {   "PA10",  SUNXI_GPA(10),  26  },

// END OF TABLE


Attached Files Thumbnail(s)
   
Reply
#2
Can you try to just wait in game for a minute and see if it starts working after that? I'm having an issue like that. It works, but it is just way too slow to start the script/service.
Reply
#3
(11-29-2018, 08:48 PM)aiiaiiiyo Wrote: Can you try to just wait in game for a minute and see if it starts working after that? I'm having an issue like that. It works, but it is just way too slow to start the script/service.

Thx for Advice!

But, It dosen't work... ;'-(
Reply
#4
(12-03-2018, 01:22 PM)intelis Wrote:
(11-29-2018, 08:48 PM)aiiaiiiyo Wrote: Can you try to just wait in game for a minute and see if it starts working after that? I'm having an issue like that. It works, but it is just way too slow to start the script/service.

Thx for Advice!

But, It dosen't work... ;'-(

Self Solved Problem... LOL..

It's Hard Wireling!


<<<<<<<<<<<<   tz_gpio_controller.py   >>>>>>>>>>>>>>

# ---- PLAYER 1 ---------#
bt_up_p1 = port.PA6
bt_down_p1 = port.PA1
bt_left_p1 = port.PA0
bt_right_p1 = port.PA3

bt_l_p1 = port.PA13
bt_r_p1 = port.PA2
bt_x_p1 = port.PG6
bt_y_p1 = port.PG7
bt_a_p1 = port.PA14
bt_b_p1 = port.PA11

bt_select_p1 = port.PA16
bt_start_p1 = port.PA15


<<<<<<<<<<<    es_input.cfg    >>>>>>>>>>>>

    <input name="pageup" type="button" id="6" value="1"/>
    <input name="start" type="button" id="7" value="1"/>
    <input name="up" type="axis" id="1" value="-1"/>
    <input name="a" type="button" id="1" value="1"/>
    <input name="b" type="button" id="2" value="1"/>
    <input name="down" type="axis" id="1" value="1"/>
    <input name="pagedown" type="button" id="5" value="1"/>
    <input name="right" type="axis" id="0" value="1"/>
    <input name="x" type="button" id="3" value="1"/>
    <input name="select" type="button" id="0" value="1"/>
    <input name="y" type="button" id="4" value="1"/>
    <input name="left" type="axis" id="0" value="-1"/>
 
===============================================


Attached Files Thumbnail(s)
   
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
Sad DESKTOP MODE AUDIO NOT WORKING (4.2 FULL OrangePi PC) Roy 2 266 11-10-2018, 01:55 PM
Last Post: Roy
  Dont work all joypad in games (full ropi, orange pi lite) Chubunov 8 443 10-25-2018, 11:39 PM
Last Post: rtokuda
Bug Ropi 4.2 full - OrangePi PC Reicast joypad config don't Start. jimlee32 3 373 09-12-2018, 10:35 AM
Last Post: alexkidd
  USB Gamepad not working in retroarch solved ) dee098 1 315 09-11-2018, 09:52 PM
Last Post: alexkidd
  GPIO controls VeteranGamer 5 655 08-19-2018, 02:06 PM
Last Post: alexkidd
  Genesis/MegaDrive Controller GPIO dee098 3 406 08-19-2018, 11:20 AM
Last Post: alexkidd

Forum Jump:


Users browsing this thread: 1 Guest(s)