Skip to main content

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for canano, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size canano-0.0.4-py3-none-any.whl (4.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size canano-0.0.4.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page