candle-bus-1.0
توضیحات
Python Can plugin with windows candle driver.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | Microsoft :: Windows |
| نام فایل | candle-bus-1.0 |
| نام | candle-bus |
| نسخه کتابخانه | 1.0 |
| نگهدارنده | ['robottime'] |
| ایمیل نگهدارنده | ['lab@robottime.cn'] |
| نویسنده | song |
| ایمیل نویسنده | zhaosongy@126.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/candle-bus/ |
| مجوز | MIT License |
# Candle Interface as Python Can plugin
A plugin developed for [python-can](https://python-can.readthedocs.io/en/3.3.4/interfaces/socketcan.html) with [candle-driver](https://github.com/chemicstry/candle_driver)
## Install
`pip install candle-bus`
## Usage
```python
import can
bus = can.interface.Bus(bitrate=1000000, bustype='candle')
# send
msg = can.Message(arbitration_id=0x202, data=[0,1,2,3,4,5,6,7])
bus.send(msg)
#receive
message = bus.recv()
```
نیازمندی
| مقدار | نام |
|---|---|
| <4.0,>=3.2.0 | python-can |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl candle-bus-1.0:
pip install candle-bus-1.0.whl
نصب پکیج tar.gz candle-bus-1.0:
pip install candle-bus-1.0.tar.gz