ODROID-GO-Advance keypad

evtest installation

sudo apt install evtest

Test with evtest

odroid@goadvance:~# evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0:      rk8xx_pwrkey
/dev/input/event1:      rockchip,rk817-codec Headphones
/dev/input/event2:      odroidgo2_joypad
Select the device event number [0-2]: 

Disable key event

echo 0 > /sys/devices/platform/odroidgo2-joypad/enable

Enable key event

echo 1 > /sys/devices/platform/odroidgo2-joypad/enable

Calibration the current position of analog joystick

odroid@goadvance:~# cat /sys/devices/platform/odroidgo2-joypad/adc_cal
adc[0]->cal = 890 adc[1]->cal = 1003
odroid@goadvance:~# echo 1 > /sys/devices/platform/odroidgo2-joypad/adc_cal
odroid@goadvance:~# cat /sys/devices/platform/odroidgo2-joypad/adc_cal
adc[0]->cal = 937 adc[1]->cal = 1012

Updated information: Forum Link

poll_interval(ms)

For setting intervals between polling events

cat /sys/devices/platform/odroidgo2_joypad/poll_interval