From 50034b142dc851da7118032f7218cb1d25ea98e4 Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Mon, 16 Mar 2026 15:14:13 +0100 Subject: CN_ control commands: typed API, dispatch, mock responses, demo UI --- demo/Main.qml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) (limited to 'demo') diff --git a/demo/Main.qml b/demo/Main.qml index 07e42b1..52d3097 100644 --- a/demo/Main.qml +++ b/demo/Main.qml @@ -139,6 +139,54 @@ ApplicationWindow { } } + // --- Control --- + GroupBox { + Layout.fillWidth: true + enabled: Xpl2Client.connected + title: "Control" + + GridLayout { + anchors.fill: parent + columns: 4 + + Button { + text: "Jetting All On" + + onClicked: Xpl2Client.jettingAllOn() + } + + Button { + text: "Jetting Off" + + onClicked: Xpl2Client.jettingOff() + } + + Button { + text: "JC LED On" + + onClicked: Xpl2Client.jcIdLedOn() + } + + Button { + text: "JC LED Off" + + onClicked: Xpl2Client.jcIdLedOff() + } + + Button { + text: "JC Calibration" + + onClicked: Xpl2Client.jcCalibration() + } + + Button { + text: "Reset Fault Codes" + + onClicked: Xpl2Client.jcResetFaultCodes() + } + } + } + // --- Printheads --- GroupBox { Layout.fillHeight: true -- cgit v1.2.3