circuitpython/tests/pyb/can.py

10 lines
145 B
Python
Raw Normal View History

2014-10-02 12:30:28 -04:00
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))