 #define COM_PIN A0
 #define SEG_PIN A4
 
-#define PIN_ON_OFF 9
-#define PIN_MODE 10
-#define PIN_FAN 11
-#define PIN_INC 12
-#define PIN_DEC 13
+#define PIN_ON_OFF 3
+#define PIN_MODE 4
+#define PIN_FAN 5
+#define PIN_INC 6
+#define PIN_DEC 7
+#define PIN_ON_OFF_READ 8
 
 #define MIN_ANALOG_V 256
 #define MAX_ANALOG_V 938
 
 #define MAX_STABLE_CNT 32 /* 去除波动，MAX_STABLE_CNT 次数据不变后才上报状态 */
 
-#define SIM_BTN_DELAY 32
+#define SIM_BTN_DELAY 64
 
 const char *g_devid = "temp_ctrl_1";
 

  g_step = 1;
}

void handle_msg() {
  StaticJsonBuffer<256> jsonBuffer;


  handle_status();

  if (g_need_report) {
    //print_status();
    report_status();
    g_need_report = 0;
  }

