31 #define DEFAULT_VALUE 0 38 pinMode(m_pin, OUTPUT);
51 return QStringList() << tr(
"Pin %1 Switch").arg(m_pin);
56 QMutexLocker locker(&
lock);
59 double newvalue = Value == 0.0 ? 0 : 1;
62 if (qFuzzyCompare(newvalue + 1.0f,
value + 1.0f))
65 digitalWrite(m_pin, newvalue);
virtual void SetValue(double Value) override
TorcPiSwitchOutput(int Pin, const QVariantMap &Details)
QStringList GetDescription(void)
void SetValue(double Value)