Rule Examples/en: различия между версиями
Matveevrj (обсуждение | вклад) (Новая страница: «<syntaxhighlight lang="ecmascript"> defineVirtualDevice("simple_test", { title: "Simple switch", cells: { enabled: { type: "switch", value: false }, } });») |
Matveevrj (обсуждение | вклад) (Новая страница: «A motion detector with a "dry contact" output is connected to input D2. When motion is detected, it shorts D2 and GND and status "1" appears on the corresponding <code>wb-gpio/D2_IN</code> channel.») |
||
Строка 49: | Строка 49: | ||
=== Motion detection with timeout === | === Motion detection with timeout === | ||
A motion detector with a "dry contact" output is connected to input D2. When motion is detected, it shorts D2 and GND and status "1" appears on the corresponding <code>wb-gpio/D2_IN</code> channel. | |||
<div lang="ru" dir="ltr" class="mw-content-ltr"> | <div lang="ru" dir="ltr" class="mw-content-ltr"> |