SDK for CheezPico USB/BLE Devices
Project description
Cheez SDK
Installation
pip install cheez_semg_pico
Quick Start
from cheez_semg_pico import CheezPico
import asyncio
async def main():
sEMG = CheezPico()
device = None
device = sEMG.connect() # 连接设备
await sEMG.set_device_id(2) # 设置设备ID:0~255
# 配置采样率:100 Hz, 200 Hz, 500 Hz, 1000 Hz
await sEMG.set_sampling_rate(200)
await sEMG.set_wear_detection(enable=False) # 设置是否开启佩戴检测
await sEMG.set_filter_state(enable=True) # 设置是否开启滤波
while True:
data = await device.read_data() # 读取设备
print(f"data:{data},sps({device.get_packet_rate()})")
if __name__ == "__main__":
asyncio.run(main())
Features
- Easy device port discovery
- Simple serial connection management
- Async data reading
- Configurable logging
- Error handling and validation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cheez_semg_pico-1.1.5.tar.gz
(7.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cheez_semg_pico-1.1.5.tar.gz.
File metadata
- Download URL: cheez_semg_pico-1.1.5.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52b56aa2c938fff9e198f42e607c8a67d61f8bb766294a0885fcfb7984e72b94
|
|
| MD5 |
8cde987ffe15bfd7b5610c201121c587
|
|
| BLAKE2b-256 |
0027bd1229e80599c8eb5558c0d6b455802f0c8e71afef2894972f9cdbd2251a
|
File details
Details for the file cheez_semg_pico-1.1.5-py3-none-any.whl.
File metadata
- Download URL: cheez_semg_pico-1.1.5-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a22d1d221d84f8a350f2f91d9f476fd09bfab4dc5eafb92e29401c2f55978ea0
|
|
| MD5 |
a0ee53a59013604f54fec00b33f92fbc
|
|
| BLAKE2b-256 |
ed135990d5925b0027334e4f3bd5d7308252f4388492eaebd54133837dade2f8
|