Good news.
chill wrote: > Hi Paul > But if I have more than one button definition on the command line, then > pressing any of the defined buttons calls the command specified for the > first button on the list, NOT the command specified for the pressed > button. This is really what the problem is. The interrupt set in wiringpi calls a program, howerver there are no parameters passed in the callback, so we have to scan all of the programmed buttons to see what is changed. The pi4 gpio scan frequency is much higher than on previous pies, so there is a much higher amount of contact chatter detected on a pi4. With pigpio, the callback has not only the pin, but the current state and the time it was pressed, so we can handle interrupts much more efficiently. The interrupt also has debounce pre-built into it. I need to talk to ralphy, but we will likely move squeezelite to pigpio, so we can just have one library on pCP. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer ------------------------------------------------------------------------ paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=107001 _______________________________________________ diy mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/diy
