Skip to content

Commit fac3497

Browse files
committed
GRBL 13.2
1 parent 05d321b commit fac3497

File tree

2 files changed

+30
-6
lines changed

2 files changed

+30
-6
lines changed

examples/Modules/GRBL13.2/multi_control/multi_control.ino renamed to examples/Modules/StepmotorGRBL13.2_M035/multi_control/multi_control.ino

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
11
/*
2-
Description: GRBL 13.2 Module TEST Example.Stack two Module at the same time.
2+
*******************************************************************************
3+
* Copyright (c) 2021 by M5Stack
4+
* Equipped with M5Core sample source code
5+
* 配套 M5Core 示例源代码
6+
* Visit the website for more information:https://docs.m5stack.com/en/module/stepmotor_driver
7+
* 获取更多资料请访问:https://docs.m5stack.com/zh_CN/module/stepmotor_driver
8+
*
9+
* describe: GRBL 13.2 Module.
10+
* date:2021/11/14
11+
*******************************************************************************
12+
GRBL 13.2 Module TEST Example,use I2C to control stepper motors(Stack two Module at the same time)
13+
步进电机模块测试示例,使用I2C控制步进电机(同时堆叠两个模块)
314
*/
415
#include <M5Stack.h>
516
#include "MODULE_GRBL13.2.h"
617

718
/*
819
* The I2C address of GRBL 13.2 Module is 0x70 by default.
20+
* GRBL 13.2 模块的 I2C 地址默认为 0x70。
921
* You could use the DIP Switch for modify I2C address to 0x71
22+
* 您可以使用拨码开关将 I2C 地址修改为 0x71
1023
*/
1124

1225
#define STEPMOTOR_I2C_ADDR_1 0x70

examples/Modules/GRBL13.2/xyz_control/xyz_control.ino renamed to examples/Modules/StepmotorGRBL13.2_M035/xyz_control/xyz_control.ino

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
11
/*
2-
Description: GRBL 13.2 Module TEST Example.
2+
*******************************************************************************
3+
* Copyright (c) 2021 by M5Stack
4+
* Equipped with M5Core sample source code
5+
* 配套 M5Core 示例源代码
6+
* Visit the website for more information:https://docs.m5stack.com/en/module/grbl13.2
7+
* 获取更多资料请访问:https://docs.m5stack.com/zh_CN/module/grbl13.2
8+
*
9+
* describe: GRBL 13.2 Module.
10+
* date:2021/11/14
11+
*******************************************************************************
12+
GRBL 13.2 Module TEST Example,use I2C to control stepper motors
13+
步进电机模块测试示例,使用I2C控制步进电机
314
*/
415
#include <M5Stack.h>
516
#include "MODULE_GRBL13.2.h"
617

718
/*
819
* The I2C address of GRBL 13.2 Module is 0x70 by default.
20+
* GRBL 13.2 模块的 I2C 地址默认为 0x70。
921
* You could use the DIP Switch for modify I2C address to 0x71
22+
* 您可以使用拨码开关将 I2C 地址修改为 0x71
1023
*/
1124

1225
#define STEPMOTOR_I2C_ADDR 0x70
@@ -34,10 +47,8 @@ void setup() {
3447
}
3548

3649
void loop() {
37-
/*
38-
If Button A was pressed,
39-
stepmotor will rotate back and forth at a time
40-
*/
50+
// If Button A was pressed,stepmotor will rotate back and forth at a time
51+
// 如果按下按钮 A,步进电机将一次来回旋转
4152
if (M5.BtnA.wasPressed()) // A button
4253
{
4354
Serial.print(_GRBL.readStatus());

0 commit comments

Comments
 (0)