Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Second rotary encoder
#2
Hi,

It looks like you are specifying SoC (Broadcom) pin numbers instead of wiringPi pin numbers which range from 1 to 16.
https://projects.drogon.net/raspberry-pi/wiringpi/pins/

I should probably change rotenc.c to use SoC pin numbering to match rotenc.py. I had to temporarily switch to a Python based driver because winingPi has been deprecated by its maintainer and does not work on Pi 4. The maintainer committed to a final release that fixes the Pi-4 issues but no timeframe. If it ever gets released I'll swap back to rotenc.c

-Tim
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
Second rotary encoder - by pgzh1 - 09-14-2019, 07:53 PM
RE: Second rotary encoder - by Tim Curtis - 09-14-2019, 08:40 PM
RE: Second rotary encoder - by pgzh1 - 09-15-2019, 12:24 PM
RE: Second rotary encoder - by Tim Curtis - 09-15-2019, 01:42 PM
RE: Second rotary encoder - by pgzh1 - 09-15-2019, 02:57 PM

Forum Jump: