MSH测试、LED闪烁成功

This commit is contained in:
2025-01-17 20:34:04 +08:00
parent 827d08456c
commit ecb8ff9d6a
2 changed files with 56 additions and 0 deletions

View File

@@ -168,6 +168,7 @@ void Set_LEDColor(uint16_t LedId, RGBColor_TypeDef Color)
}
void LED_Set(uint16_t LedId, RGBColor_TypeDef Color)
{
LED_Blink_Staue[LedId]=0;
RGB_Data[LedId].G = Color.G;
RGB_Data[LedId].R = Color.R;
RGB_Data[LedId].B = Color.B;
@@ -204,6 +205,7 @@ void LED_LITTLE_TEST(void)
}
}
}
LED_Blink_ON=!LED_Blink_ON;
RGB_Reflash();
rt_thread_mdelay(500);
}