From 395b2fe799008809ae4a97b63f89e1fceebd9673 Mon Sep 17 00:00:00 2001 From: nisonya <57719832+nisonya@users.noreply.github.com> Date: Sun, 1 Mar 2026 23:31:22 +0300 Subject: [PATCH] Update led.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Убирает мерцания на низкой яркости --- firmware/AmbiSensor/led.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/firmware/AmbiSensor/led.h b/firmware/AmbiSensor/led.h index fdcbee3..cb3c2d8 100644 --- a/firmware/AmbiSensor/led.h +++ b/firmware/AmbiSensor/led.h @@ -12,6 +12,8 @@ uint16_t led_am; void led_init() { leds = (CRGB *)malloc(sizeof(CRGB)); cled = &FastLED.addLeds(leds, 0).setCorrection(TypicalLEDStrip); + + FastLED.setDither(0); //от морганий на низкой яркости } uint16_t led_amount() { @@ -27,4 +29,4 @@ void led_change() { void led_show() { cled->showLeds(data.led_br); -} \ No newline at end of file +}