BMS Doug wrote:the 2 axis stick gives an analogue value, the SPI based Digital to analogue converter changes the signal into a digital reference that is taken back to the pi via the SPI bus.
there are many 2 axis sticks that do the same things, I've got three in my bits box waiting for a project that needs them.
I'm trying to read the bits retrieved from MCP3002 to the R-Pi, but, without success. I'm reproducing the Python code that read the bits to C++, but, I'm not tested it, yet!
I didn't find an example in pure C++, just found examples using the wiringPi, and I don't want to use this lib.

if you know any examples in C or C++, I'll appreciate the sharing!
Thanks!