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