Redstone circuits/Piston/Edge Detector B

Dual-Edge Detector (B).
The rightmost repeater
can be set to 2, 3, or 4.