首先要安装pylsl,在cmd中运行:
pip install pylsl
安装好之后,运行以下python代码可以接收BCIduino通过lsl发出来的数据
"""Example program to show how to read a multi-channel time series from LSL."""
from pylsl import StreamInlet, resolve_stream
# first resolve an EEG stream on the lab network
print("looking for an EEG stream...")
streams = resolve_stream('type'