コード例 #1
0
 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
0
ファイル: BLE.py プロジェクト: il-dionigi/Systems-Design-F19
 def __init__(self):
     DefaultDelegate.__init__(self)
コード例 #3
0
ファイル: sensortag.py プロジェクト: namoaton/bluepy
 def __init__(self):
     DefaultDelegate.__init__(self)
     self.lastVal = 0
コード例 #4
0
 def __init__(self):
     DefaultDelegate.__init__(self)
     self.lastVal = 0