def __init__(self, address, port):
     IPSerialBridge.__init__(self, address, port)
     self.internal_status = {}
     self.internal_current = {}
     for ch in self.channelIs:
         self.internal_status[ch] = 0#self.status(ch)
         self.internal_current[ch] = 0#self.current(ch)
Пример #2
0
 def __init__(self, address, port):
     IPSerialBridge.__init__(self, address, port)
     self.internal_status = {}
     self.internal_current = {}
     for ch in self.channelIs:
         self.internal_status[ch] = 0  #self.status(ch)
         self.internal_current[ch] = 0  #self.current(ch)
Пример #3
0
 def __init__(self, address, port):
     IPSerialBridge.__init__(self, address, port)
     self.read = self.old_read
     self.send = self.old_send
 def __del__(self):
     print("Shutting down LEDS")
     for c in range(0, self.n_channels):
         self.turn_off(c)
     
     IPSerialBridge.__del__(self)
 def connect(self):
     IPSerialBridge.connect(self)
     for ch in self.channelIs:
         self.internal_status[ch] = self.status(ch)
         self.internal_current[ch] = self.current(ch)
 def __init__(self, address, port):
     IPSerialBridge.__init__(self, address, port)
     self.read = self.old_read
     self.send = self.old_send
Пример #7
0
    def __del__(self):
        print("Shutting down LEDS")
        for c in range(0, self.n_channels):
            self.turn_off(c)

        IPSerialBridge.__del__(self)
Пример #8
0
 def connect(self):
     IPSerialBridge.connect(self)
     for ch in self.channelIs:
         self.internal_status[ch] = self.status(ch)
         self.internal_current[ch] = self.current(ch)