PICADE - X Hat- Buttons + Joystick not detecting

Steps for debugging hardware:

  • drop to terminal from ES by hitting F4 (you will need a keyboard!)
  • install wiringpi for the gpio utility: sudo apt install wiringpi
  • run watch -n 0.1 gpio readall to watch your GPIO status
  • hit some buttons, twiddle the joystick (slowly, 0.1 is a tenth of a second so any action <0.1s may not be visible) and see if anything changes

It’s possible that the dtoverlay/drivers/etc for the controls aren’t loading properly, to debug the software:

  • Make sure /boot/overlays/picade.dtbo exists
  • Make sure dtoverlay=picade is in /boot/config.txt
  • Check dmesg output for any glaring errors
  • Check that /etc/udev/rules.d/10-picade.rules exists