File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77* 获取更多资料请访问:https://docs.m5stack.com/zh_CN/unit/can
88*
99* describe: can.
10- * date:2021/8/30
10+ * date:2021/9/1
1111*******************************************************************************
1212 Please connect to PORT-B,Press buttonA or buttonB to Send message if received message, screen will display
1313 请连接端口B,按钮A或按钮B发送消息,如果收到消息,屏幕将显示
@@ -27,11 +27,11 @@ int i = 0;
2727void setup () {
2828 M5 .begin (true , false , true );
2929 M5 .Power .begin ();
30- M5 .Lcd .drawString (" CAN Unit Send&Received" , 40 , 3 , 4 );
30+ M5 .Lcd .drawString (" CAN Unit Send&Received" , 40 , 3 , 4 );
3131 M5 .Lcd .setCursor (0 , 60 , 4 );
3232
33- CAN_cfg.speed = CAN_SPEED_125KBPS ; // Set the Can speed
34- CAN_cfg.tx_pin_id = TX ; // Set the Pin foot
33+ CAN_cfg.speed = CAN_SPEED_125KBPS ; // Set the Can speed. 设置Can速度
34+ CAN_cfg.tx_pin_id = TX ; // Set the Pin foot. 设置引脚
3535 CAN_cfg.rx_pin_id = RX ;
3636
3737 CAN_cfg.rx_queue = xQueueCreate (10 ,sizeof (CAN_frame_t));
You can’t perform that action at this time.
0 commit comments