Reply To: Setting Volume with Encoder using Jivelite

Max2Play Home Forums Max2Play on Raspberry PI Setting Volume with Encoder using Jivelite Reply To: Setting Volume with Encoder using Jivelite

23. Januar 2016 at 23:04 #18108

Hi,

Regarding the „strange feature“ with the encoder, this is just a function of the program that you use to read the encoder. You can edit the IQ_rot.c file to change this (currentVolume = currentVolume + 1;) and re-compile the program with „gcc IQ_rot.c -oIQ_rot -lwiringPi -lasound“

I found another program for the encoder that is easier to use as it can take parameters from the command line, and also allows control of the linear/log nature of adjustment. You may also be able to use your button with this.

https://github.com/alidaf/raspberryPi/tree/master/piRotEnc

However, this is still useless for me at this time because Jivelite does not seem to play nicely with volume set through ALSA.

Cheers,

Patrick