Пример #1
0
 def testOpenCloseByFirstFound(self):
     # Open by first found
     first_devices = []
     for x in range(len(self.devices)):
         first_devices.append(ics.open_device())
     # Close by API
     for device in first_devices:
         ics.close_device(device)
Пример #2
0
 def shutdown(self):
     super(NeoViBus, self).shutdown()
     ics.close_device(self.dev)
Пример #3
0
 def shutdown(self):
     super().shutdown()
     ics.close_device(self.dev)
Пример #4
0
 def testOpenClose100Times(self):
     for x in range(100):
         ics.open_device(self.devices[0])
         ics.close_device(self.devices[0])
Пример #5
0
 def testOpenCloseBySerial(self):
     # Open by serial number
     for device in self.devices:
         d = ics.open_device(device.SerialNumber)
         ics.close_device(d)
Пример #6
0
 def testOpenCloseByFind(self):
     # Open by ics.NeoDevice
     for device in self.devices:
         ics.open_device(device)
         ics.close_device(device)