Rule Examples/en: различия между версиями

Новая страница: «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.»
(Новая страница: «<syntaxhighlight lang="ecmascript"> defineVirtualDevice("simple_test", { title: "Simple switch", cells: { enabled: { type: "switch", value: false }, } });»)
(Новая страница: «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 ===


<div lang="ru" dir="ltr" class="mw-content-ltr">
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.
На вход D2 подключен детектор движения с выходом "сухой контакт". При обнаружении движения он замыкает D2 и GND, и на соответствующем канале <code>wb-gpio/D2_IN</code> появляется статус "1".
</div>


<div lang="ru" dir="ltr" class="mw-content-ltr">
<div lang="ru" dir="ltr" class="mw-content-ltr">
translator, wb_editors
4433

правки