Skip to main content

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


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.6.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cheez_semg_pico-1.1.6-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file cheez_semg_pico-1.1.6.tar.gz.

File metadata

  • Download URL: cheez_semg_pico-1.1.6.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

Hashes for cheez_semg_pico-1.1.6.tar.gz
Algorithm Hash digest
SHA256 10824a416aa03e37f587a2e65f38dc7a1118c9ae94576f18e7e4b49e004bce7d
MD5 06aa9a3deebb94b45b771b59523aa129
BLAKE2b-256 9fc32499c0d2ba074baa83415b5e82f86db7d23d15db7d7da81a4ee3cdc21219

See more details on using hashes here.

File details

Details for the file cheez_semg_pico-1.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for cheez_semg_pico-1.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d1ab91a2241270dbcf0170b047122ca8fc8ff2c03b9a92276e19768c8e9e90ec
MD5 5f4a7c41ad2f4177f4c29413dea7dae1
BLAKE2b-256 09e9348b796ac0f9c37a7e0c8a50ee18f7e8a372c06c8cb3b1c9f4087c0a5c47

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page