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.5.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.5-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

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

Hashes for cheez_semg_pico-1.1.5.tar.gz
Algorithm Hash digest
SHA256 52b56aa2c938fff9e198f42e607c8a67d61f8bb766294a0885fcfb7984e72b94
MD5 8cde987ffe15bfd7b5610c201121c587
BLAKE2b-256 0027bd1229e80599c8eb5558c0d6b455802f0c8e71afef2894972f9cdbd2251a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheez_semg_pico-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a22d1d221d84f8a350f2f91d9f476fd09bfab4dc5eafb92e29401c2f55978ea0
MD5 a0ee53a59013604f54fec00b33f92fbc
BLAKE2b-256 ed135990d5925b0027334e4f3bd5d7308252f4388492eaebd54133837dade2f8

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