加入版本号,0.9开始,和其他部分合好后从1.0开始
This commit is contained in:
parent
93ec10391a
commit
b69b4cd7ac
@ -3,7 +3,7 @@
|
||||
// 定义公共结构,变量,硬件接口等
|
||||
///
|
||||
//
|
||||
|
||||
#define VERSION "0.90" //版本
|
||||
// 硬件接口定义////////////////////////////
|
||||
// 按钮
|
||||
#define BTN_UP 23 // 收线开关 接线:BTN_UP---GND
|
||||
|
@ -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); // 黄色
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user