コード例 #1
0
 def stop(self):
     """Allows stopping the device, restart using start()"""
     if self._running:
         ret = hid.hid_close(self._hid)
         if ret != hid.HID_RET_SUCCESS:
             sys.stderr.write("hid_close failed with return code %d.\n" % ret)
           
         self._running = False
         
         hid.hid_cleanup()
コード例 #2
0
    def stop(self):
        """Allows stopping the device, restart using start()"""
        if self._running:
            ret = hid.hid_close(self._hid)
            if ret != hid.HID_RET_SUCCESS:
                sys.stderr.write("hid_close failed with return code %d.\n" %
                                 ret)

            self._running = False

            hid.hid_cleanup()
コード例 #3
0
ファイル: hidwrap.py プロジェクト: chad3814/libhid
 def close(self):
     '''Close the Interface. Called automatically by __del__().'''
     _hid_raise("close", hid.hid_close(self.interface))
コード例 #4
0
ファイル: hidwrap.py プロジェクト: rippelchristoph/libhid
 def close(self):
     '''Close the Interface. Called automatically by __del__().'''
     _hid_raise("close", hid.hid_close(self.interface))
コード例 #5
0
ファイル: hidwrap.py プロジェクト: raurodba/psychophysics
 def close(self):
     _hid_raise("close", hid.hid_close(self.interface))
コード例 #6
0
ファイル: hidwrap.py プロジェクト: JanaMa/psychophysics
 def close(self):
     _hid_raise("close", hid.hid_close(self.interface))