Skip to content

Instantly share code, notes, and snippets.

# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'plot.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
import array
import random
import ble
from pyqtgraph import PlotWidget
import pyqtgraph as pg
import numpy as np
from PyQt5 import QtCore
class Plot_Show(object):
'''
绘图组件,输出5~550范围的数值
定义绘图时的参数:QWidget、组件y作标、组件x作标、y轴数据、组件宽高、组件对象文本
import numpy as np
import sys
import time
import asyncio
import logging
from bleak import BleakClient
EMG = np.zeros(6)
import sys
import time
import asyncio
import logging
from bleak import BleakClient
logger = logging.getLogger()
# 运行BLE客户端
#include <BLEDevice.h>
#include <BLEServer.h>
#include <BLEUtils.h>
#include <BLE2902.h>
// #include <periph_ctr
#define SERIAL_RX_BUFFER_SIZE 2048
BLEServer *pServer = NULL;
BLECharacteristic *pTxCharacteristic;
bool deviceConnected = false;
bool oldDeviceConnected = false;
@allrobot
allrobot / python.py
Created March 28, 2022 04:09
测试
print("看看代码能用不,这里是https://gist.github.com/链接")