Python library for Canano Raspberry Pi add-on board
Project description
canano
Python library for Canano Raspberry Pi add-on board.
Installation
Use pip to install package on Raspberry Pi
pip install canano
Copy /scripts
using svn or by cloning the repo
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
sudo python3 scripts/rpi_setup.py
sudo reboot
Usage
from canano import canano, relay
relay.on() # activate
relay.off() # deactivate
canano.interface.state # returns socketcan state
canano.state # returns python-can state
canano.baud = 250000 # sets bus baudrate to 250k
canano.bus.recv() # returns next message
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.