Animation None option, FPS min 1, serial COM lifecycle fixes

- Replace animation Enable checkbox with None option in effect selector;
  show effect description tooltip; disable speed slider when None selected
- Allow target FPS range 1-90 (was 10-90) across UI and backend validation
- Scope serial COM connections to target lifetime (no idle caching);
  use temporary connections for power-off/test mode
- Fix serial black frame on stop: flush after write, delay after task
  cancel to prevent race with in-flight thread pool write

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-21 04:33:56 +03:00
parent 8a0730d91b
commit ee52e2d98f
15 changed files with 126 additions and 71 deletions

View File

@@ -258,7 +258,7 @@
"streams.capture_template": "Engine Template:",
"streams.capture_template.hint": "Engine template defining how the screen is captured",
"streams.target_fps": "Target FPS:",
"streams.target_fps.hint": "Target frames per second for capture (10-90)",
"streams.target_fps.hint": "Target frames per second for capture (1-90)",
"streams.source": "Source:",
"streams.source.hint": "The source to apply processing filters to",
"streams.pp_template": "Filter Template:",
@@ -361,7 +361,7 @@
"targets.source.hint": "Which picture source to capture and process",
"targets.source.none": "-- No source assigned --",
"targets.fps": "Target FPS:",
"targets.fps.hint": "Target frames per second for capture and LED updates (10-90)",
"targets.fps.hint": "Target frames per second for capture and LED updates (1-90)",
"targets.border_width": "Border Width (px):",
"targets.border_width.hint": "How many pixels from the screen edge to sample for LED colors (1-100)",
"targets.interpolation": "Interpolation Mode:",
@@ -589,19 +589,26 @@
"color_strip.gradient.bidir.hint": "Add a second color on the right side of this stop to create a hard edge in the gradient.",
"color_strip.gradient.min_stops": "Gradient must have at least 2 stops",
"color_strip.animation": "Animation",
"color_strip.animation.enabled": "Enable Animation:",
"color_strip.animation.enabled.hint": "Enables procedural animation. The LEDs will update at 30 fps driven by the selected effect.",
"color_strip.animation.type": "Effect:",
"color_strip.animation.type.hint": "The animation effect to apply. Breathing, Strobe, Sparkle, Pulse, Candle, and Rainbow Fade work for both static and gradient sources; Gradient Shift and Wave are gradient-only.",
"color_strip.animation.type.hint": "Animation effect to apply.",
"color_strip.animation.type.none": "None (no animation effect)",
"color_strip.animation.type.breathing": "Breathing",
"color_strip.animation.type.breathing.desc": "Smooth brightness fade in and out",
"color_strip.animation.type.color_cycle": "Color Cycle",
"color_strip.animation.type.gradient_shift": "Gradient Shift",
"color_strip.animation.type.gradient_shift.desc": "Slides the gradient along the strip",
"color_strip.animation.type.wave": "Wave",
"color_strip.animation.type.wave.desc": "Sinusoidal brightness wave moving along the strip",
"color_strip.animation.type.strobe": "Strobe",
"color_strip.animation.type.strobe.desc": "Rapid on/off flashing",
"color_strip.animation.type.sparkle": "Sparkle",
"color_strip.animation.type.sparkle.desc": "Random LEDs flash briefly",
"color_strip.animation.type.pulse": "Pulse",
"color_strip.animation.type.pulse.desc": "Sharp brightness pulse with quick fade",
"color_strip.animation.type.candle": "Candle",
"color_strip.animation.type.candle.desc": "Warm flickering candle-like glow",
"color_strip.animation.type.rainbow_fade": "Rainbow Fade",
"color_strip.animation.type.rainbow_fade.desc": "Cycles through the entire hue spectrum",
"color_strip.animation.speed": "Speed:",
"color_strip.animation.speed.hint": "Animation speed multiplier. 1.0 ≈ one cycle per second for Breathing; higher values cycle faster.",
"color_strip.color_cycle.colors": "Colors:",

View File

@@ -258,7 +258,7 @@
"streams.capture_template": "Шаблон Движка:",
"streams.capture_template.hint": "Шаблон движка, определяющий способ захвата экрана",
"streams.target_fps": "Целевой FPS:",
"streams.target_fps.hint": "Целевое количество кадров в секунду (10-90)",
"streams.target_fps.hint": "Целевое количество кадров в секунду (1-90)",
"streams.source": "Источник:",
"streams.source.hint": "Источник, к которому применяются фильтры обработки",
"streams.pp_template": "Шаблон Фильтра:",
@@ -361,7 +361,7 @@
"targets.source.hint": "Какой источник изображения захватывать и обрабатывать",
"targets.source.none": "-- Источник не назначен --",
"targets.fps": "Целевой FPS:",
"targets.fps.hint": "Целевая частота кадров для захвата и обновления LED (10-90)",
"targets.fps.hint": "Целевая частота кадров для захвата и обновления LED (1-90)",
"targets.border_width": "Ширина границы (px):",
"targets.border_width.hint": "Сколько пикселей от края экрана выбирать для цвета LED (1-100)",
"targets.interpolation": "Режим интерполяции:",
@@ -589,19 +589,26 @@
"color_strip.gradient.bidir.hint": "Добавить второй цвет справа от этой остановки для создания резкого перехода в градиенте.",
"color_strip.gradient.min_stops": "Градиент должен содержать не менее 2 остановок",
"color_strip.animation": "Анимация",
"color_strip.animation.enabled": "Включить анимацию:",
"color_strip.animation.enabled.hint": "Включает процедурную анимацию. Светодиоды обновляются со скоростью 30 кадров в секунду по выбранному эффекту.",
"color_strip.animation.type": "Эффект:",
"color_strip.animation.type.hint": "Эффект анимации. Дыхание, стробоскоп, искры, пульс, свеча и радужный перелив работают для статического цвета и градиента; сдвиг градиента и волна — только для градиентов.",
"color_strip.animation.type.hint": "Эффект анимации.",
"color_strip.animation.type.none": "Нет (без эффекта анимации)",
"color_strip.animation.type.breathing": "Дыхание",
"color_strip.animation.type.breathing.desc": "Плавное угасание и нарастание яркости",
"color_strip.animation.type.color_cycle": "Смена цвета",
"color_strip.animation.type.gradient_shift": "Сдвиг градиента",
"color_strip.animation.type.gradient_shift.desc": "Сдвигает градиент вдоль ленты",
"color_strip.animation.type.wave": "Волна",
"color_strip.animation.type.wave.desc": "Синусоидальная волна яркости вдоль ленты",
"color_strip.animation.type.strobe": "Стробоскоп",
"color_strip.animation.type.strobe.desc": "Быстрое мигание вкл/выкл",
"color_strip.animation.type.sparkle": "Искры",
"color_strip.animation.type.sparkle.desc": "Случайные светодиоды кратковременно вспыхивают",
"color_strip.animation.type.pulse": "Пульс",
"color_strip.animation.type.pulse.desc": "Резкая вспышка яркости с быстрым затуханием",
"color_strip.animation.type.candle": "Свеча",
"color_strip.animation.type.candle.desc": "Тёплое мерцание, как у свечи",
"color_strip.animation.type.rainbow_fade": "Радужный перелив",
"color_strip.animation.type.rainbow_fade.desc": "Циклический переход по всему спектру оттенков",
"color_strip.animation.speed": "Скорость:",
"color_strip.animation.speed.hint": "Множитель скорости анимации. 1.0 ≈ один цикл в секунду для дыхания; большие значения ускоряют анимацию.",
"color_strip.color_cycle.colors": "Цвета:",