This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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轴数据、组件宽高、组件对象文本 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import sys | |
import time | |
import asyncio | |
import logging | |
from bleak import BleakClient | |
EMG = np.zeros(6) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import time | |
import asyncio | |
import logging | |
from bleak import BleakClient | |
logger = logging.getLogger() | |
# 运行BLE客户端 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("看看代码能用不,这里是https://gist.github.com/链接") |
NewerOlder