Python library for Canano Raspberry Pi add-on board.
Use pip to install package on Raspberry Pi
pip install cananoCopy /scripts using svn or by cloning the repo
sudo svn checkout https://github.com/Tbruno25/canano/trunk/scriptsRun rpi_setup.py to modify /boot/config and /etc/network/interfaces for use with the canano board
sudo python3 scripts/rpi_setup.py
sudo rebootThe api currently gives you control over the components on the board
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
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 messagePlay around with it to find interesting use cases!
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

