This commit is contained in:
2024-11-28 14:59:43 +01:00
parent c4eaaf013e
commit 14682b7ee5
2 changed files with 6 additions and 6 deletions

View File

@@ -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);