Skip to content

Commit 22e1d65

Browse files
committed
Can
1 parent fb3c837 commit 22e1d65

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

examples/Unit/CAN/CAN.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
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;
2727
void 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));

0 commit comments

Comments
 (0)