seems stable red/green color changes

This commit is contained in:
Yunhorn 2025-07-29 16:38:14 +08:00
parent 088a0a73b9
commit f237b4ad36
2 changed files with 2 additions and 1 deletions

View File

@ -29,7 +29,7 @@
#include "yunhorn_sts_sensors.h" #include "yunhorn_sts_sensors.h"
#define ONE_PULSE (36) //(36) //36 #define ONE_PULSE (36) //(36) //36
#define ZERO_PULSE (12) //(12) #define ZERO_PULSE (14) //(12)
#define LED_DATA_LEN 24 #define LED_DATA_LEN 24
//#define WS2812B_DATA_LEN (LED_DATA_LEN * (STS_LAMP_BAR_LED_NUM)) //#define WS2812B_DATA_LEN (LED_DATA_LEN * (STS_LAMP_BAR_LED_NUM))
@ -108,6 +108,7 @@ void ws2812b_data_transfer(uint8_t *src, uint32_t len)
uint32_t bits = 0; uint32_t bits = 0;
uint32_t bytes = 0; uint32_t bytes = 0;
HAL_TIM_PWM_Stop_DMA(&STS_LAMP_BAR_HTIM, STS_LAMP_BAR_TIM_CHANNEL); HAL_TIM_PWM_Stop_DMA(&STS_LAMP_BAR_HTIM, STS_LAMP_BAR_TIM_CHANNEL);
memset(ws2812b_crr_value,0,sizeof(ws2812b_crr_value));
while(len--) while(len--)
{ {
for (i=0; i < 8; i++) for (i=0; i < 8; i++)

Binary file not shown.