[docs] fixed error in event list

This commit is contained in:
Grovkillen
2019-02-14 14:52:30 +01:00
parent 7f70abd1c2
commit e028b9d02a
+20 -23
View File
@@ -9,9 +9,9 @@
.. code-block:: html
on DHT11Outside#Temperature>20 do
GPIO,2,1
endon
on DHT11Outside#Temperature>20 do
GPIO,2,1
endon
"
"
@@ -21,9 +21,9 @@
.. code-block:: html
on System#Wake do
GPIO,15,1
endon
on System#Wake do
GPIO,15,1
endon
"
"
@@ -221,28 +221,25 @@
"
"
``GPIO#N``
If the command "Monitor" is used to monitor a given pin you will receive an event for that GPIO
as soon as it's state changes. As seen in the example you can always use the square brackets
together with the task/value name of ``Plugin#GPIO#Pinstate#N`` to get the state, but to
trigger events you need to add the monitor command (preferably at boot).
If the command 'Monitor' is used to monitor a given pin you will receive an event for that GPIO as soon as it's state changes. As seen in the example you can always use the square brackets together with the task/value name of ``Plugin#GPIO#Pinstate#N`` to get the state, but to trigger events you need to add the monitor command (preferably at boot).
","
.. code-block:: html
on System#Boot do
Monitor GPIO,15
endon
on System#Boot do
Monitor GPIO,15
endon
on GPIO#15=0 do
if [Plugin#GPIO#Pinstate#13]=0
// do something
endif
endon
on GPIO#15=0 do
if [Plugin#GPIO#Pinstate#13]=0
// do something
endif
endon
on GPIO#15=1 do
if [Plugin#GPIO#Pinstate#13]=1
// do something
endif
endon
on GPIO#15=1 do
if [Plugin#GPIO#Pinstate#13]=1
// do something
endif
endon
"