当前位置: 首页>>代码示例>>Python>>正文


Python DefaultDelegate.__init__方法代码示例

本文整理汇总了Python中bluepy.btle.DefaultDelegate.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python DefaultDelegate.__init__方法的具体用法?Python DefaultDelegate.__init__怎么用?Python DefaultDelegate.__init__使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在bluepy.btle.DefaultDelegate的用法示例。


在下文中一共展示了DefaultDelegate.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from bluepy.btle import DefaultDelegate [as 别名]
# 或者: from bluepy.btle.DefaultDelegate import __init__ [as 别名]
 def __init__(self, scaling_output=True):
     DefaultDelegate.__init__(self)
     # holds samples until OpenBCIBoard claims them
     self.samples = []
     # detect gaps between packets
     self.last_id = -1
     self.packets_dropped = 0
     # save uncompressed data to compute deltas
     self.lastChannelData = [0, 0, 0, 0]
     # 18bit data got here and then accelerometer with it
     self.lastAcceleromoter = [0, 0, 0]
     # when the board is manually set in the right mode (z to start, Z to stop)
     # impedance will be measured. 4 channels + ref
     self.lastImpedance = [0, 0, 0, 0, 0]
     self.scaling_output = scaling_output
     # handling incoming ASCII messages
     self.receiving_ASCII = False
     self.time_last_ASCII = timeit.default_timer()
开发者ID:OpenBCI,项目名称:OpenBCI_Python,代码行数:20,代码来源:ganglion.py

示例2: __init__

# 需要导入模块: from bluepy.btle import DefaultDelegate [as 别名]
# 或者: from bluepy.btle.DefaultDelegate import __init__ [as 别名]
	def __init__(self, bt_addr):
		DefaultDelegate.__init__(self)
		self.bt_addr = bt_addr
开发者ID:derHeinz,项目名称:raspberrypi-python,代码行数:5,代码来源:blue_scan.py

示例3: __init__

# 需要导入模块: from bluepy.btle import DefaultDelegate [as 别名]
# 或者: from bluepy.btle.DefaultDelegate import __init__ [as 别名]
 def __init__(self):
     DefaultDelegate.__init__(self)
     self.queue = list()
开发者ID:izhaohui,项目名称:yeelight_blue_python,代码行数:5,代码来源:YeelightService.py

示例4: __init__

# 需要导入模块: from bluepy.btle import DefaultDelegate [as 别名]
# 或者: from bluepy.btle.DefaultDelegate import __init__ [as 别名]
 def __init__(self):
     DefaultDelegate.__init__(self)
     self.lastVal = 0
开发者ID:IanHarvey,项目名称:bluepy,代码行数:5,代码来源:sensortag.py

示例5: __init__

# 需要导入模块: from bluepy.btle import DefaultDelegate [as 别名]
# 或者: from bluepy.btle.DefaultDelegate import __init__ [as 别名]
 def __init__(self, nuimoOnkyo):
     DefaultDelegate.__init__(self)
     self.nuimo = nuimoOnkyo
开发者ID:RezaMahmood,项目名称:nuimo-onkyo,代码行数:5,代码来源:nuimo-onkyo.py

示例6: __init__

# 需要导入模块: from bluepy.btle import DefaultDelegate [as 别名]
# 或者: from bluepy.btle.DefaultDelegate import __init__ [as 别名]
 def __init__(self, csvlog):
     DefaultDelegate.__init__(self)
     self.csvlog = csvlog
开发者ID:vaggos2002,项目名称:py-angel-sensor,代码行数:5,代码来源:main.py

示例7: __init__

# 需要导入模块: from bluepy.btle import DefaultDelegate [as 别名]
# 或者: from bluepy.btle.DefaultDelegate import __init__ [as 别名]
 def __init__(self, container=None):
     DefaultDelegate.__init__(self)
     self.__container = container
开发者ID:jakubszlendak,项目名称:robot-ble-localization,代码行数:5,代码来源:scan.py

示例8: __init__

# 需要导入模块: from bluepy.btle import DefaultDelegate [as 别名]
# 或者: from bluepy.btle.DefaultDelegate import __init__ [as 别名]
 def __init__(self, nuimo, strip):
     DefaultDelegate.__init__(self)
     self.nuimo = nuimo
     self.strip = strip
开发者ID:popoklopsi,项目名称:Nuimo-RaspberryPi-LedStrip,代码行数:6,代码来源:NuimoLedStrip.py

示例9: __init__

# 需要导入模块: from bluepy.btle import DefaultDelegate [as 别名]
# 或者: from bluepy.btle.DefaultDelegate import __init__ [as 别名]
 def __init__(self, opts):
     DefaultDelegate.__init__(self)
     self.opts = opts
开发者ID:4n6strider,项目名称:bleah,代码行数:5,代码来源:scan.py

示例10: __init__

# 需要导入模块: from bluepy.btle import DefaultDelegate [as 别名]
# 或者: from bluepy.btle.DefaultDelegate import __init__ [as 别名]
 def __init__(self, scanner, notify):
     DefaultDelegate.__init__(self)
     self.notify = notify
     self.scanner = scanner
开发者ID:brendonparker,项目名称:nuimo-py-web,代码行数:6,代码来源:nuimo.py

示例11: __init__

# 需要导入模块: from bluepy.btle import DefaultDelegate [as 别名]
# 或者: from bluepy.btle.DefaultDelegate import __init__ [as 别名]
 def __init__(self, params):
     DefaultDelegate.__init__(self)
开发者ID:kiminseob,项目名称:LG-smart-ThinkQ,代码行数:4,代码来源:bluedata.py

示例12: __init__

# 需要导入模块: from bluepy.btle import DefaultDelegate [as 别名]
# 或者: from bluepy.btle.DefaultDelegate import __init__ [as 别名]
 def __init__(self, params):
   DefaultDelegate.__init__(self)
   print "Info, DefaultDelegate set", params
开发者ID:digitalhack,项目名称:dhSensorTag2015,代码行数:5,代码来源:testKeys.py

示例13: __init__

# 需要导入模块: from bluepy.btle import DefaultDelegate [as 别名]
# 或者: from bluepy.btle.DefaultDelegate import __init__ [as 别名]
 def __init__(self):
     DefaultDelegate.__init__(self)
     self.devices = []
开发者ID:Betree,项目名称:magicblue,代码行数:5,代码来源:magicblueshell.py

示例14: __init__

# 需要导入模块: from bluepy.btle import DefaultDelegate [as 别名]
# 或者: from bluepy.btle.DefaultDelegate import __init__ [as 别名]
 def __init__(self, nuimoTimer):
     DefaultDelegate.__init__(self)
     self.nuimoTimer = nuimoTimer
开发者ID:RezaMahmood,项目名称:nuimo-timer,代码行数:5,代码来源:nuimo-timer.py

示例15: __init__

# 需要导入模块: from bluepy.btle import DefaultDelegate [as 别名]
# 或者: from bluepy.btle.DefaultDelegate import __init__ [as 别名]
 def __init__(self):
     DefaultDelegate.__init__(self)
开发者ID:uname,项目名称:blepi,代码行数:4,代码来源:ScanDelegate.py


注:本文中的bluepy.btle.DefaultDelegate.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。