recalbox / mk_arcade_joystick_rpi

Raspberry PI kernel module for arcade joystick on GPIO and MCP23017

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

analog joystick?

thorleifjacobsen opened this issue · comments

Hi, i have an analog joystick which sends i2c data i read with my python script, can this be easily adapted to read that? This seems like what i'm looking for except for the joystick is digital :)

For info my joystick has an attiny84 sending 2 bytes on request. One with address and one with ADC data.

E.g. sending 0x01 returns: 0x01 0x7f when centered. Or 0x01 0x00 when left e.t.c.

0x01 = X axis
0x02 = Y axis
0x03 = button