code: def wait_for_edge(self, pin, edge):
          
          self.rpi_gpio.wait_for_edge(pin, self._edge_mapping[edge])
docs: Wait for an edge.   Pin should be type IN.  Edge must be RISING,
          FALLING or BOTH.