From 2b9943ba0d28449a590acfa8a41555b174b6ba84 Mon Sep 17 00:00:00 2001 From: Christian Kolset Date: Mon, 27 Apr 2026 16:53:14 -0600 Subject: Improved arduino interface. Now allowing the user to configure pins on the fly. --- ui/strip_chart.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ui/strip_chart.py') diff --git a/ui/strip_chart.py b/ui/strip_chart.py index 7bc2a18..523102d 100644 --- a/ui/strip_chart.py +++ b/ui/strip_chart.py @@ -158,6 +158,11 @@ class StripChartWidget(QWidget): def refresh(self): self.apply_layout(self._cfg or build_default_layout(self.registry, self.processor)) + def on_channel_enabled_changed(self, dev_id: str, ch_id: str, enabled: bool): + key = (dev_id, ch_id) + for e in self._curves.get(key, []): + e["curve"].setVisible(enabled) + @pyqtSlot(str, str, float, float) def on_new_data(self, device_id: str, channel_id: str, ts: float, val: float): if self._paused or not _HAS_PG or not self._cfg: return -- cgit v1.2.3