This handles push-up/down intermittent mode.

This scketch is created for Maker Faire Tokyo 2015.

Ask twitter.com/jojonki.