Board Thread:Questions and Answers/@comment-25523075-20170103152730/@comment-28905095-20170105154132

Yes, it is possible. The answer on how to do this is to incorporate a T Flip Flop into the system. A T Flip Flop will toggle between on and off at the reception of a redstone signal. There are multiple designs allowing for this to happen.

Some of these are described here: http://minecraft.gamepedia.com/Memory_circuit#T_Flip-Flop

Sadly, we don't have any such pages here at this wiki so far...