From 14682b7ee553ed4bb83cd8e26048af6191e7c90d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Thu, 28 Nov 2024 14:59:43 +0100 Subject: [PATCH] ? --- CC100_HW/module.php | 10 +++++----- library.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CC100_HW/module.php b/CC100_HW/module.php index f1225a0..851ee3a 100644 --- a/CC100_HW/module.php +++ b/CC100_HW/module.php @@ -2,11 +2,6 @@ class CC100_HW extends IPSModule { - - public function Create() - { - parent::Create(); - private $DigOutPID = "/sys/kernel/dout_drv/DOUT_DATA"; private $PT1PID = "/sys/bus/iio/devices/iio:device2/in_voltage13_raw"; private $PT2PID = "/sys/bus/iio/devices/iio:device2/in_voltage1_raw"; @@ -14,6 +9,11 @@ class CC100_HW extends IPSModule private $waitingTime = 1; // Waiting time (in ms) for a new attempt to write a digital output (if file is blocked) private $maxTime = 5000; // Max time (in ms) for the writing process + public function Create() + { + parent::Create(); + + $this->RegisterVariableBoolean("Bit1", "DO 1", "~Switch", 1); $this->RegisterVariableBoolean("Bit2", "DO 2", "~Switch", 2); $this->RegisterVariableBoolean("Bit3", "DO 3", "~Switch", 3); diff --git a/library.json b/library.json index 0f37fb2..bb611fd 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "0.161", + "version": "0.162", "build": 0, "date": 0 } \ No newline at end of file