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.1.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: caroa04-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 25e6452a0faa248ad7555c9c0bb95e25ee027d3a8ee8bb8bf4bb18223dc321e6
MD5 fd78f9873718b1913d6099d22772938d
BLAKE2b-256 ba6bd790b9aa83ed8b1df590d670d2aca30a5525573feffc5c10250105e9fd83

See more details on using hashes here.

File details

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

File metadata

  • Download URL: caroa04-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6ed279189935cd62d7ee2e798e8ff31e591c43dc1e5f659db017330365e68c00
MD5 d4cb9a188604bf7adaa6d8d78087d834
BLAKE2b-256 644de9ef516cad62ee52cb02a269703021b695ff2e068bf16596406875cfd63c

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