07-07-2021, 03:55 PM
@the_bertrum
Real hackers don't ask for directions. They hack first and brag (or complain) after
I expect the sense of the transition you want to trigger on depends on how you've wired your switch to the GPIO. Experimentation is par for the course and what you suggest seems reasonable.
Rotary switches are generally "noisy" so it's possible you have to deal with switch bounce as well.
Regards,
Kent
Real hackers don't ask for directions. They hack first and brag (or complain) after

I expect the sense of the transition you want to trigger on depends on how you've wired your switch to the GPIO. Experimentation is par for the course and what you suggest seems reasonable.
Rotary switches are generally "noisy" so it's possible you have to deal with switch bounce as well.
Regards,
Kent