Skip to main content

Library to control the CAROA04 CAN-IO expander device from eletechsup.

Project description

https://img.shields.io/pypi/v/caroa04.svg See Build Status on GitHub Actions Documentation Status

Library to control the CAROA04 CAN-IO expander device from eletechsup.

Installation

You can install “caroa04” via pip from PyPI:

$ pip install caroao4

Usage

from caroa04 import CaroA04

caro = CaroA04()
caro.start(0xE0, 'pcan', 250000, 'PCAN_USBBUS1')  # start communication

caro.do1.phys = True  # set do1 state to True
print(caro.do1.phys)  # read do1 state
print(caro.di1.phys)  # read di1 state

print(caro.bitrate.phys)  # read current bitrate
caro.bitrate.phys = 500000  # set different baudrate (will require device power cycle)

print(caro.node_id.phys)  # read current address code
caro.node_id.phys = 0xE1  # set address code (will require device power cycle)

caro.shutdown()  # free the bus

Features

  • TODO

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

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

caroa04-0.1.0.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

caroa04-0.1.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file caroa04-0.1.0.tar.gz.

File metadata

  • Download URL: caroa04-0.1.0.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.0

File hashes

Hashes for caroa04-0.1.0.tar.gz
Algorithm Hash digest
SHA256 973164ee40cffd5f293e18ad9ffb61da8b9f9cbed803d40f7c89404876c81169
MD5 a80f2ed58f9b1bc4d78a34ed4b6f0ee4
BLAKE2b-256 172f816a8924fc4418eaadb5af7eff80ed7e1cbcb0b79eab11cb10905f5f89cf

See more details on using hashes here.

File details

Details for the file caroa04-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: caroa04-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.0

File hashes

Hashes for caroa04-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 29a6dab71d1fb32b055d19be562e174a5723219f80cf247b98184c90da2efe68
MD5 042252df7d42974771456846cd0b7d39
BLAKE2b-256 9c2f0dafe7555ee9a0e8cb519bfd0fc857fa16ace5ef9cb3d7b3b8f071e0a5b7

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