circuitpython/tests/pyb/can.py
2014-10-02 17:32:02 +01:00

10 lines
145 B
Python

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))