コード例 #1
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)
コード例 #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
コード例 #4
0
 def __del__(self):
     logging.debug("Shutting down LEDS")
     for c in range(0, self.n_channels):
         self.turn_off(c)
     
     IPSerialBridge.__del__(self)
コード例 #5
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)
コード例 #6
0
 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):
        logging.debug("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)