Search found 2 matches
- Wed Dec 03, 2014 3:06 am
- Forum: General Discussion and Questions
- Topic: how to receive can message?
- Replies: 1
- Views: 2997
how to receive can message?
import pyb from pyb import CAN can = CAN(1) can.init(CAN.NORMAL,False,2,sjw=1,bs1=15,bs2=5)# 1Mbps can.setfilter(0, CAN.MASK32, 0, (0, 0)) # set a filter to receive messages def run(): """ Start the loop. """ can_id = 0 print('Loop started.\nPress Ctrl+C to break out of the loop.') while 1: try: ca...
- Tue Dec 02, 2014 7:35 am
- Forum: MicroPython pyboard
- Topic: module wiznet5k
- Replies: 6
- Views: 33387