diff options
Diffstat (limited to 'tests/pyb/can.py')
-rw-r--r-- | tests/pyb/can.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/pyb/can.py b/tests/pyb/can.py new file mode 100644 index 000000000..e11695568 --- /dev/null +++ b/tests/pyb/can.py @@ -0,0 +1,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)) |