Skip to main content

ZeroLab Bus API for Python

Project description

pyZlBus2

ZeroLab Bus API for Python

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

Installation

pip install pyzlbus2==0.1.11

Usage

import pyZlBus2 as zl

# zl.test()
zl.bleDemo()  # 蓝牙
# 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 zl
print(zl.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.1.12-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyzlbus2-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 b2cc5f8da5cb7af7d445df00a450c7e23877b622df7ab62c3a758b9dc6d6a63c
MD5 e764a9f4962e8ae9ab0764c916513c9b
BLAKE2b-256 09c501dac03f000f3015b9dfd76c98f953bbf7e67b135c3ccc72235a72f27634

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