Exemple #1
0
 def __init__(self, serial=None, hard=True):
     UIBase.__init__(self, serial)
     if hard:
         from relay08 import get_relay_obj
         self.relay08 = get_relay_obj()
     else:
         self.relay08 = None
Exemple #2
0
 def __init__(self, serial=None):
     UIBase.__init__(self, serial)
     self.relay08 = get_relay_obj()
Exemple #3
0
 def __init__(self, serial = None, retry = 1):
     UIBase.__init__(self, serial)
     self.relay08 = get_relay_obj()
     self.conf_name = ""
     self.retry = retry
 def press_power_key(self, duration=4):
     if not self.relay:
         self.relay = relay08.get_relay_obj()
     self.relay.press_power_key(duration)
 def get_relay08_obj(self):
     self.relay = relay08.get_relay_obj()
Exemple #6
0
 def __init__(self, serial=None):
     ADBTools.__init__(self, serial)
     self.relay08 = get_relay_obj()