summaryrefslogtreecommitdiff
path: root/ui/strip_chart.py
diff options
context:
space:
mode:
authorChristian Kolset <christian.kolset@gmail.com>2026-04-27 16:53:14 -0600
committerChristian Kolset <christian.kolset@gmail.com>2026-04-27 16:53:14 -0600
commit2b9943ba0d28449a590acfa8a41555b174b6ba84 (patch)
treee8bef8c9bc61dd7e2f9c8a9b177058a4b09546db /ui/strip_chart.py
parent67cfa0a514c7de4605ed7360e15a81aa781e510e (diff)
Improved arduino interface. Now allowing the user to configure pins on the fly.
Diffstat (limited to 'ui/strip_chart.py')
-rw-r--r--ui/strip_chart.py5
1 files changed, 5 insertions, 0 deletions
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