From 840a11e70e3d7967cff1a6fffa4addd71d175d30 Mon Sep 17 00:00:00 2001 From: stark1898y <1658608470@qq.com> Date: Tue, 10 Dec 2024 15:39:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- APP/peripheral.c | 1 + APP/peripheral_main.c | 14 +++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/APP/peripheral.c b/APP/peripheral.c index 63020c5..953afd9 100644 --- a/APP/peripheral.c +++ b/APP/peripheral.c @@ -181,6 +181,7 @@ static uint8_t scanRspData[] = { 0x06, // 1B ·§ÃÅ´óÆøÑ¹Á¦ 80~110 kPa }; + // GAP - Advertisement data (max size = 31 bytes, though this is // best kept short to conserve power while advertising) static uint8_t advertData[] = { diff --git a/APP/peripheral_main.c b/APP/peripheral_main.c index 889c35d..14309ac 100644 --- a/APP/peripheral_main.c +++ b/APP/peripheral_main.c @@ -60,6 +60,14 @@ __attribute__((noinline)) void Main_Circulation() DelayMs(1000); PRINT("LED_ALL_OFF_DEINIT\n"); + // BEEP + BEEP_ON; + DelayMs(1000); + PRINT("BEEP_ON\n"); + BEEP_OFF_DEINIT; + DelayMs(1000); + PRINT("BEEP_OFF_DEINIT\n"); + // LED_G LED_G_ON; DelayMs(1000); @@ -69,6 +77,8 @@ __attribute__((noinline)) void Main_Circulation() DelayMs(1000); PRINT("LED_ALL_OFF_DEINIT\n"); + + // LED_Y LED_Y_ON; DelayMs(1000); @@ -78,13 +88,15 @@ __attribute__((noinline)) void Main_Circulation() DelayMs(1000); PRINT("LED_ALL_OFF_DEINIT\n"); + + PRINT("Delay 6s\n"); // EMV_CHARGE EMV_CHARGE_EN; PRINT("EMV_CHARGE_EN\n"); - DelayMs(500); + DelayMs(1000); EMV_CHARGE_OFF_DEINIT; PRINT("EMV_CHARGE_OFF_DEINIT 500 ms\n");