Esempio n. 1
0
 def turn_off(self, **kwargs):
     """Turn the device off."""
     pi4ioe5v9xxxx.pin_to_memory(self._pin, self._invert_logic)
     pi4ioe5v9xxxx.memory_to_hw()
     self._state = False
     self.schedule_update_op_state()
Esempio n. 2
0
 def turn_on(self, **kwargs):
     """Turn the device on."""
     pi4ioe5v9xxxx.pin_to_memory(self._pin, not self._invert_logic)
     pi4ioe5v9xxxx.memory_to_hw()
     self._state = True
     self.schedule_update_op_state()