recalbox-os GPIO controllers

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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容