Added switching components.

Added switching components similar to that found in pi4j.