美文网首页
recalbox-os GPIO controllers

recalbox-os GPIO controllers

作者: 蝈胖胖 | 来源:发表于2017-07-04 09:54 被阅读0次

    recalboxOS is build with themk_arcade_joystick_gpiodriver that can manage a controller directly connected on rpi GPIO.

    So if you plan to make aBartop,Arcade cab, or aportable panel, you don't even need an usb controller.

    The driver can manage up to2 controllerscomposed of a4 direction joystickand9 buttons.

    If you are on a RPI1 B revision see directly themk_arcade_joystick pinout

    Pinout

    Let's consider a 7 buttons cab panel with this button order :

    ↑  Ⓨ Ⓧ Ⓛ

    ← → Ⓑ Ⓐ Ⓡ Ⓗ

    With Ⓡ= Right trigger = TR, Ⓛ= Left trigger = TLand Ⓗ= HK = Hotkey

    On RPI B+, RPI2 and RPi3 you must connect your buttons as specified by this pinout :

    You can connect you buttondirectly to the groundas the driver enablegpio internal pullups.

    Configuration

    Inrecalbox.conf, enable the gpio driver by setting controllers.gpio.enabled to 1 :controllers.gpio.enabled=1and you're done ! The GPIO are configured out of the box in the frontend and systems.

    ###Related:###

    Enable Gpio button to close emulator with only one button press

    相关文章

      网友评论

          本文标题:recalbox-os GPIO controllers

          本文链接:https://www.haomeiwen.com/subject/oiuthxtx.html