Added a class to affect the output of a gpio pin.