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.

Source Distribution

canano-0.0.4.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

canano-0.0.4-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file canano-0.0.4.tar.gz.

File metadata

  • Download URL: canano-0.0.4.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for canano-0.0.4.tar.gz
Algorithm Hash digest
SHA256 4d4f4e4f396db932814e0d07befb68fd8553e3fc87f92a3310272b4bcce62631
MD5 9cbd0b91754f458f7e2f735f3adf8d69
BLAKE2b-256 97fd3b97c81c1319b1fa8ddfeba7f62be4fd2859b3d7109414367689f6bd1474

See more details on using hashes here.

File details

Details for the file canano-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: canano-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for canano-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7e62083811a0376f56421ec2e3f4575ae664710aba7e17e747287ad2512405bf
MD5 f87257b919cceb5db94ee8bc0950eab0
BLAKE2b-256 6d8e44d096f7c8ac3023c84f8f8951c7d1dbdbe6c72ad062613cf25bb37c8a1c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page