本文整理汇总了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()
示例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
示例3: __init__
# 需要导入模块: from bluepy.btle import DefaultDelegate [as 别名]
# 或者: from bluepy.btle.DefaultDelegate import __init__ [as 别名]
def __init__(self):
DefaultDelegate.__init__(self)
self.queue = list()
示例4: __init__
# 需要导入模块: from bluepy.btle import DefaultDelegate [as 别名]
# 或者: from bluepy.btle.DefaultDelegate import __init__ [as 别名]
def __init__(self):
DefaultDelegate.__init__(self)
self.lastVal = 0
示例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
示例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
示例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
示例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
示例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
示例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
示例11: __init__
# 需要导入模块: from bluepy.btle import DefaultDelegate [as 别名]
# 或者: from bluepy.btle.DefaultDelegate import __init__ [as 别名]
def __init__(self, params):
DefaultDelegate.__init__(self)
示例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
示例13: __init__
# 需要导入模块: from bluepy.btle import DefaultDelegate [as 别名]
# 或者: from bluepy.btle.DefaultDelegate import __init__ [as 别名]
def __init__(self):
DefaultDelegate.__init__(self)
self.devices = []
示例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
示例15: __init__
# 需要导入模块: from bluepy.btle import DefaultDelegate [as 别名]
# 或者: from bluepy.btle.DefaultDelegate import __init__ [as 别名]
def __init__(self):
DefaultDelegate.__init__(self)