odroid_go_ultra:application_note:cal_keypad

ODROID-GO Ultra joypad

sudo apt install 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
echo 0 > /sys/devices/platform/gou_joypad/enable
echo 1 > /sys/devices/platform/gou_joypad/enable
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

For setting intervals between polling events

cat /sys/devices/platform/gou_joypad/poll_interval
  • odroid_go_ultra/application_note/cal_keypad.txt
  • Last modified: 2022/09/02 11:54
  • by luke.go