Place 2 pistons with redstone blocks on top. One is facing up or down, other - into any side.
Now activate and disactivate both pistons.
One will stay open, other will be close.
It works with sticky and non-sticky pistons as well.
Related issues
Attachments
Comments

[media][media][media]

WAI. MC-108