加入版本号,0.9开始,和其他部分合好后从1.0开始

This commit is contained in:
pxzleo 2023-05-12 00:20:24 +08:00
parent 93ec10391a
commit b69b4cd7ac
2 changed files with 4 additions and 5 deletions

View File

@ -3,7 +3,7 @@
// 定义公共结构,变量,硬件接口等
///
//
#define VERSION "0.90" //版本
// 硬件接口定义////////////////////////////
// 按钮
#define BTN_UP 23 // 收线开关 接线BTN_UP---GND

View File

@ -81,8 +81,7 @@ void setup()
// 调试串口
Serial.begin(115200);
Serial.println("Starting PullupDevice...");
printf("Starting PullupDevice... Ver:%s\n",VERSION);
// 初始化按钮
button_up.attachClick(upbtn_click);
button_up.attachDoubleClick(upbtn_dbclick);
@ -350,7 +349,7 @@ void showledidel()
led_show(0, 255, 0); // 绿色
else
{
Serial.println("not IS_OK");
// Serial.println("not IS_OK");
led_show(255, 255, 0); // 黄色
}
}
@ -360,7 +359,7 @@ void showledidel()
led_show(255, 255, 255); // 白色
else
{
Serial.println("not is_setzero");
// Serial.println("not is_setzero");
led_show(255, 255, 0); // 黄色
}
}