Skip to content

Commit c6b4171

Browse files
committed
Add Windows python-can plugin
1 parent c91aa1f commit c6b4171

File tree

3 files changed

+1808
-0
lines changed

3 files changed

+1808
-0
lines changed

Windows/python/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# SuperCAN plugin for python-can
2+
3+
## Installation
4+
5+
Assuming you have Visual Studio (Build Tools) installed, navigate
6+
to this directory and then run
7+
8+
```console
9+
python -m pip install setuptools
10+
```
11+
12+
```console
13+
python -m pip install .
14+
```
15+
16+
## Usage from Python
17+
18+
```python
19+
import can
20+
21+
e = can.Bus(
22+
channel=0, # channel index (0-based)
23+
filters=None,
24+
interface="supercan-exclusive", # exclusive access to the channel
25+
serial="12345678", # device serial
26+
bitrate=500000)
27+
```

0 commit comments

Comments
 (0)