canano-0.0.4
توضیحات
Python library for Canano Raspberry Pi add-on board
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | canano-0.0.4 |
| نام | canano |
| نسخه کتابخانه | 0.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Tj Bruno |
| ایمیل نویسنده | Tbruno25@gmail.com |
| آدرس صفحه اصلی | https://github.com/Tbruno25/canano |
| آدرس اینترنتی | https://pypi.org/project/canano/ |
| مجوز | - |
# canano
Python library for Canano Raspberry Pi add-on board. <img align="right" src="https://i.ibb.co/FnDczVM/board2.jpg">
## Installation
Use [pip](https://pip.pypa.io/en/stable/) to install package on Raspberry Pi
```bash
pip install canano
```
Copy ```/scripts``` using [svn](https://subversion.apache.org/) or by cloning the repo
```bash
sudo svn checkout https://github.com/Tbruno25/canano/trunk/scripts
```
Run ```rpi_setup.py``` to modify ```/boot/config``` and ```/etc/network/interfaces``` for use with the canano board
```bash
sudo python3 scripts/rpi_setup.py
sudo reboot
```
## Usage
The api currently gives you control over the components on the board
```python
from canano import red_led, green_led, relay, button
red_led.on() # activate
green_led.off() # deactivate
button.state # returns state
```
canano controls the socketcan interface allowing you to easily adjust on the fly
```python
from canano import canano
canano.baud = 250000 # sets bus baudrate to 250k
canano.reset() # clears buffer
canano.bus # python-can bus object
canano.bus.recv() # returns next message
```
Play around with it to find interesting use cases!
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
<p align="center">
<img src="https://i.ibb.co/1XXtwDD/board.jpg">
</p
نیازمندی
| مقدار | نام |
|---|---|
| ==2.2.3 | aenum |
| ==0.4.0 | in-place |
| ==3.3.2 | python-can |
| ==0.7.0 | RPi.GPIO |
| ==1.12.1 | wrapt |
| ==0.0.2 | pysocketcan |
نحوه نصب
نصب پکیج whl canano-0.0.4:
pip install canano-0.0.4.whl
نصب پکیج tar.gz canano-0.0.4:
pip install canano-0.0.4.tar.gz