加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
main.py 731 Bytes
一键复制 编辑 原始数据 按行查看 历史
"""the file is dumped, please run ./gui.py"""
"""
import numpy as np
import pyqtgraph as pg
from pyqtgraph.Qt import QtCore, QtGui
from drivers.usbd import USBDevice
from parsers.dataparser import ArrayParser
from plot.waveview import WaveItem"""
if __name__ == '__main__':
print('the file is dumped, please run ./gui.py')
"""import sys
usbd = USBDevice(idVendor=0xffff)
ap = ArrayParser(usbd, 100, None, np.uint16, 128)
ap.start()
win = pg.GraphicsLayoutWidget(show=True)
win.setWindowTitle('WaveItem')
wvi = WaveItem(ap.arr_buf)
win.addItem(wvi)
wvi.start()
if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
QtGui.QApplication.instance().exec_()"""
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化