Linear Reciprocation With One Way Interrupted Deg. Rotation
Input: pink slider linearly reciprocating.
Output: blue shaft.
When the shaft moves to the right, it rotates 180 deg. at the center of its stroke thanks to the cam mechanism.
When it moves to the left it rotates 180 deg. at the center of its stroke in the same direction.
So in one double stroke the output rotates totally 360 deg.
To ease the output rotation the cam slanting angle must not large (20 deg. in this video).