Library to control the CAROA04 CAN-IO expander device from eletechsup.
Project description
Library to control the CAROA04 CAN-IO expander device from eletechsup.
Free software: MIT license
Documentation: https://caroa04.readthedocs.io.
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 hashes)