Commit e535a619 authored by Damien George's avatar Damien George
Browse files

tests: Add simple CAN test.

parent 3550de4e
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))
CAN(1)
False
True
(123, 0, 0, b'abcd')
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment