I’m new to the beagle bone and am having difficulty reading the output of a thumb joystick.
I’m running Debian Jessie 8.2
Linux kernel 4.1.12-ti-r29
I’ve connected the thumb joystick as follows
vcc - p9_32
gnd - p9_34
hor - p9_36
ver - p9_38
i did not connect the pin for the switch because it is not needed.
All the instructions that I can find on the topic suggest that you have to enable the analog inputs on the BBB. The instructions for doing so require using “cape-bone-iio”. I’ve read that cape-bone or bone-cape isn’t the way things are done on linux kernels in the “4.x” range.
So my question is, how do I get the joystick output on my BBB running Debian 8.2 and Kernel 4.1?
Now the next step in the instructions that i’ve found says that I should search the /sys/ directory for files with “ain” in the name
find /sys/ -iname “ain*”
this results in 0 files being found.
I guess the newer kernels don’t use “ain” files for reporting the inputs. Once again my googlefu has failed to return a useful result.
Anyone have any ideas on where exactly I find the data coming in the inputs?