Skip to main content

ZLBus Python SDK - 用于与ZLBus设备通信的Python库

Project description

pyZlBus2

ZeroLab ZlBus API for Python

This package provides an API for interacting with ZeroLab Bus devices using Python.

Installation

pip install pyzlbus2

Usage

import pyZlBus2 as zl

# zl.test()
zl.bleDemo()  # 蓝牙
# zl.bleDemo(bleScannerPass=True)  # 蓝牙
# zl.serialDemo()  # 串口
# zl.serialRfDemo()  # 需要dongle支持

# Example usage

以下为示例代码,用于获取数据格式

两种写法功能相同,只是第二种写法更方便,因为pyZlBus2是对zlbusapi的封装,所以可以直接使用zlbusapi的函数。

import zlbusapi as zlapi
print(zlapi.ul_getDataFormat().hex(' ').upper())
# PyZlBus2 includes ZlBusApi module
import pyZlBus2 as zlb
print(zlb.api.ul_getDataFormat().hex(' ').upper())

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

pyzlbus2-0.5.14-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

Details for the file pyzlbus2-0.5.14-py3-none-any.whl.

File metadata

  • Download URL: pyzlbus2-0.5.14-py3-none-any.whl
  • Upload date:
  • Size: 22.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for pyzlbus2-0.5.14-py3-none-any.whl
Algorithm Hash digest
SHA256 a6924961075df2c4d20e5c53a9f21126112d104e727d2c62cdb1c916a49e6be9
MD5 f024a2c3d1db560657ef046383294897
BLAKE2b-256 27f3a8931116c8a0093cf95c9e3b6897f97aa957e46f08c6e712359087f057f9

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