I am trying to install a rotary encoder for volume control on my pi with IQaudio digiAMP+. Vague instructions are at: http://www.iqaudio.com/downloads/IQaudIO.pdf
Has anyone managed to do this and get it working? If so, could you explain how please.
I have installed wiringpi and am told by Gordon at IQ that I also need libasound2 and libasound2-dev, both of which I have installed. I also had to install git. but when I run the gcc command from root it can't find the file and if I run it from /tools I am getting:
Any ideas please?
Code: Select all
root@DietPi:~# cd tools root@DietPi:~/tools# gcc IQ_rot.c -oIQ_rot -lwiringPi -lasound IQ_rot.c:40:0: warning: "TRUE" redefined #define TRUE 1 ^ In file included from IQ_rot.c:16:0: /usr/local/include/wiringPi.h:32:0: note: this is the location of the previous definition # define TRUE (1==1) ^ IQ_rot.c:41:0: warning: "FALSE" redefined #define FALSE 0 ^ In file included from IQ_rot.c:16:0: /usr/local/include/wiringPi.h:33:0: note: this is the location of the previous definition # define FALSE (!TRUE) ^