can.py 145 Bytes
Newer Older
Damien George's avatar
Damien George committed
1
2
3
4
5
6
7
8
9
from pyb import CAN

can = CAN(1)
print(can)
can.init(CAN.LOOPBACK)
print(can.any(0))
can.send('abcd', 123)
print(can.any(0))
print(can.recv(0))