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.10

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyzlbus2-0.1.11-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.11-py3-none-any.whl
Algorithm Hash digest
SHA256 4017f72c596dfa0e621f7d927be81effc32a3a8a07ecac53d850c48440d6076b
MD5 60de5fa3e9ab601b1952ed1572b24aa5
BLAKE2b-256 d50f7740ff4ee707c05088deac945c06a3cd0096bcd542e72cb99c5d3c2d76a5

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