Skip to content

Commit 1d708a0

Browse files
mgiacohardbyte
authored andcommitted
add interface example definition for beginners
1 parent 6735a0e commit 1d708a0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/send_one.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33

44

55
def send_one():
6-
bus = can.interface.Bus()
6+
bus = can.interface.Bus(bustype='pcan', channel='PCAN_USBBUS1', bitrate=250000)
7+
#bus = can.interface.Bus(bustype='ixxat', channel=0, bitrate=250000)
8+
#bus = can.interface.Bus(bustype='vector', app_name='CANalyzer', channel=0, bitrate=250000)
9+
710
msg = can.Message(arbitration_id=0xc0ffee,
811
data=[0, 25, 0, 1, 3, 1, 4, 1],
912
extended_id=True)

0 commit comments

Comments
 (0)