ODROID-GO Ultra joypad
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: gou-gpio-keys /dev/input/event1: rk8xx_pwrkey /dev/input/event2: AML-AUGESOUND Headphones /dev/input/event3: odroidgo_joypad Select the device event number [0-3]:
- /dev/input/event0 : Volume Key input
- /dev/input/event1 : Power Key input
- /dev/input/event2 : Headphone Jack detect event
- /dev/input/event3 : Joypad Btn/Annalog stick input
Disable key event
echo 0 > /sys/devices/platform/gou_joypad/enable
Enable key event
echo 1 > /sys/devices/platform/gou_joypad/enable
Calibration the current position of analog joystick
odroid@goadvance:~# cat /sys/devices/platform/gou_joypad/adc_cal adc[0]->cal = 890 adc[1]->cal = 1003 odroid@goadvance:~# echo 1 > /sys/devices/platform/gou_joypad/adc_cal odroid@goadvance:~# cat /sys/devices/platform/gou_joypad/adc_cal adc[0]->cal = 937 adc[1]->cal = 1012
poll_interval(ms)
For setting intervals between polling events
cat /sys/devices/platform/gou_joypad/poll_interval