From df5669303bd54d7bfd553c7cfad279231d7ece17 Mon Sep 17 00:00:00 2001 From: WXK <287788329@qq.com> Date: 星期五, 25 四月 2025 09:33:37 +0800 Subject: [PATCH] 3.6,加入蜂鸣器等逻辑 --- APL/WS2812.h | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/APL/WS2812.h b/APL/WS2812.h index e3b2c86..d90c8a0 100644 --- a/APL/WS2812.h +++ b/APL/WS2812.h @@ -1,6 +1,6 @@ #include "main.h" //#include "stm32l4xx_hal.h" -//#define HALFLIGHT +#define HALFLIGHT #ifdef HALFLIGHT #define RED 0XFF00 #define GREEN 0xFF0000 @@ -9,11 +9,11 @@ #define YELLOW 0xFFFF00 #define LEDOFF 0x000000 #else - #define RED 0X1100 - #define GREEN 0x110000 - #define BLUE 0x11 - #define WHITE 0x111111 - #define YELLOW 0x111100 + #define RED 0X8800 + #define GREEN 0x880000 + #define BLUE 0x88 + #define WHITE 0x888888 + #define YELLOW 0x888800 #define LEDOFF 0x000000 #endif void Set4LEDColor(uint32_t firstled,uint32_t secondled,uint32_t thirdled,uint32_t fourthled); -- Gitblit v1.9.3