def deviceCount(devType=None):
 if (os.name == 'nt'):
  if (devType is None):
   numdev = len(listAll(3))
   numdev += len(listAll(9))
   numdev += len(listAll(6))
   if (skymoteLib is not None):
    numdev += len(listAll(1281))
   return numdev
  else:
   return len(listAll(devType))
 elif (devType == None):
  numdev = staticLib.LJUSB_GetDevCount(3)
  numdev += staticLib.LJUSB_GetDevCount(9)
  numdev += staticLib.LJUSB_GetDevCount(6)
  numdev += staticLib.LJUSB_GetDevCount(1281)
  return numdev
 else:
  return staticLib.LJUSB_GetDevCount(devType)

def deviceCount ( devType = None ) : if ( os . name == 'nt' ) : if ( devType is None ) : numdev = len ( listAll ( 3 ) ) numdev += len ( listAll ( 9 ) ) numdev += len ( listAll ( 6 ) ) if ( skymoteLib is not None ) : numdev += len ( listAll ( 1281 ) ) return numdev else : return len ( listAll ( devType ) ) elif ( devType == None ) : numdev = staticLib . LJUSB_GetDevCount ( 3 ) numdev += staticLib . LJUSB_GetDevCount ( 9 ) numdev += staticLib . LJUSB_GetDevCount ( 6 ) numdev += staticLib . LJUSB_GetDevCount ( 1281 ) return numdev else : return staticLib . LJUSB_GetDevCount ( devType )
returns the number of devices connected .