diff --git a/src/config.h b/src/config.h index 4936c93..6f61ab2 100644 --- a/src/config.h +++ b/src/config.h @@ -3,7 +3,7 @@ // 定义公共结构,变量,硬件接口等 /// // - +#define VERSION "0.90" //版本 // 硬件接口定义//////////////////////////// // 按钮 #define BTN_UP 23 // 收线开关 接线:BTN_UP---GND diff --git a/src/main.cpp b/src/main.cpp index 8ae9475..eba92f7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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); // 黄色 } }