From c4eaaf013e41aed60c2d4ccb265c3492269946c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Thu, 28 Nov 2024 14:58:37 +0100 Subject: [PATCH] ?? --- CC100_HW/module.php | 15 ++++++++------- library.json | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/CC100_HW/module.php b/CC100_HW/module.php index 44fa817..f1225a0 100644 --- a/CC100_HW/module.php +++ b/CC100_HW/module.php @@ -2,17 +2,18 @@ class CC100_HW extends IPSModule { - 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"; - private $DIN_FILE = "/sys/bus/iio/devices/iio:device2/in_voltage1_raw"; - 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->RegisterPropertyString("FilePath", $this->DigOutPID); + + 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"; + private $DIN_FILE = "/sys/bus/iio/devices/iio:device2/in_voltage1_raw"; + 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 + $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 1500626..0f37fb2 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "0.160", + "version": "0.161", "build": 0, "date": 0 } \ No newline at end of file