Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/cmnds/cmd_newLEDDriver.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,10 @@ void LED_RunQuickColorLerp(int deltaMS) {
int target_value_brightness = 0;
int target_value_cold_or_warm = 0;

#if PLATFORM_ESP8266
HAL_PIN_PWM_BeginUpdate();
#endif

if (CFG_HasFlag(OBK_FLAG_LED_FORCE_MODE_RGB)) {
// only allow setting pwm 0, 1 and 2, force-skip 3 and 4
maxPossibleIndexToSet = 3;
Expand Down Expand Up @@ -405,6 +409,9 @@ void LED_RunQuickColorLerp(int deltaMS) {
}
}
}
#if PLATFORM_ESP8266
HAL_PIN_PWM_EndUpdate();
#endif

LED_I2CDriver_WriteRGBCW(led_rawLerpCurrent);
}
Expand Down Expand Up @@ -554,6 +561,9 @@ void apply_smart_light() {
int value_brightness = 0;
int value_cold_or_warm = 0;

#if PLATFORM_ESP8266
HAL_PIN_PWM_BeginUpdate();
#endif

firstChannelIndex = LED_GetFirstChannelIndex();

Expand Down Expand Up @@ -681,6 +691,9 @@ void apply_smart_light() {
}
}
}
#if PLATFORM_ESP8266
HAL_PIN_PWM_EndUpdate();
#endif
if(CFG_HasFlag(OBK_FLAG_LED_SMOOTH_TRANSITIONS) == false) {
LED_I2CDriver_WriteRGBCW(finalColors);
}
Expand Down
Loading
Loading