mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
55_PIFACE: commandref: link structure changed
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@24744 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
07fb462430
commit
113de5d15b
@ -525,36 +525,34 @@ sub PIFACE_Shutdown($) {
|
|||||||
<code>define <name> PIFACE</code><br>
|
<code>define <name> PIFACE</code><br>
|
||||||
</ul><br>
|
</ul><br>
|
||||||
|
|
||||||
<a id="PIFACE-set"></a>
|
<a id="PIFACE-set"></a>
|
||||||
<b>Set</b><br/>
|
<b>Set</b><br/>
|
||||||
<ul>
|
<ul><br/>
|
||||||
|
<code>set <name> <port> <value></code>
|
||||||
<br/>
|
<br/><br/>
|
||||||
<code>set <name> <port> <value></code>
|
<ul>
|
||||||
<br/><br/>
|
<li>set single port n to 1 (on) or 0 (off)<br/><br/>
|
||||||
<ul>
|
Examples:<br/>
|
||||||
<li>set single port n to 1 (on) or 0 (off)<br/><br/>
|
set <name> 3 1 => set port 3 on<br/>
|
||||||
Examples:<br/>
|
set <name> 5 0 => set port 5 off<br/>
|
||||||
set <name> 3 1 => set port 3 on<br/>
|
</li>
|
||||||
set <name> 5 0 => set port 5 off<br/></li>
|
<br/>
|
||||||
<br/>
|
<li>set all ports in one command by bitmask<br/><br/>
|
||||||
<li>set all ports in one command by bitmask<br/><br/>
|
Example:<br/>
|
||||||
Example:<br/>
|
set <name> all 255 => set all ports on<br/>
|
||||||
set <name> all 255 => set all ports on<br/>
|
set <name> all 0 => set all ports off<br/>
|
||||||
set <name> all 0 => set all ports off<br/>
|
set <name> all 170 => bitmask(170) = 10101010 => set ports 1 3 5 7 on, ports 0 2 4 6 off<br/>
|
||||||
set <name> all 170 => bitmask(170) = 10101010 => set ports 1 3 5 7 on, ports 0 2 4 6 off<br/>
|
<br/>
|
||||||
<br/>
|
<ul>
|
||||||
<ul>
|
<code>port 76543210<br/>
|
||||||
<code>port 76543210<br/>
|
bit 10101010</code>
|
||||||
bit 10101010</code>
|
</ul></li>
|
||||||
</ul></li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
<br>
|
</ul>
|
||||||
|
<br>
|
||||||
|
|
||||||
<a id="PIFACE-get"></a>
|
<a id="PIFACE-get"></a>
|
||||||
<b>Get</b><br/>
|
<b>Get</b><br/>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
@ -592,10 +590,10 @@ sub PIFACE_Shutdown($) {
|
|||||||
[defaultState] = off is default.<br>
|
[defaultState] = off is default.<br>
|
||||||
Restoration of the status of the output port after a Fhem reboot.
|
Restoration of the status of the output port after a Fhem reboot.
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#PIFACE_disable">disable</a> 0|1<br>
|
<li><a href="#disable">disable</a> 0|1<br>
|
||||||
If applied set commands will not be executed.
|
If applied set commands will not be executed.
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#PIFACE_disabledForIntervals">disabledForIntervals</a> HH:MM-HH:MM HH:MM-HH-MM...<br>
|
<li><a href="#disabledForIntervals">disabledForIntervals</a> HH:MM-HH:MM HH:MM-HH-MM...<br>
|
||||||
Space separated list of HH:MM tupels. If the current time is between
|
Space separated list of HH:MM tupels. If the current time is between
|
||||||
the two time specifications, set commands will not be executed. Instead of
|
the two time specifications, set commands will not be executed. Instead of
|
||||||
HH:MM you can also specify HH or HH:MM:SS. To specify an interval
|
HH:MM you can also specify HH or HH:MM:SS. To specify an interval
|
||||||
@ -608,7 +606,14 @@ sub PIFACE_Shutdown($) {
|
|||||||
[pollInterval] = off is default.<br>
|
[pollInterval] = off is default.<br>
|
||||||
Define the polling interval of the input ports in seconds.
|
Define the polling interval of the input ports in seconds.
|
||||||
</li>
|
</li>
|
||||||
<li><a id="PIFACE-attr-portMode<0..7>">portMode<0..7></a> tri|up,
|
<li><a id="PIFACE-attr-portMode0">portMode0</a><br>
|
||||||
|
<a id="PIFACE-attr-portMode1">portMode1</a><br>
|
||||||
|
<a id="PIFACE-attr-portMode2">portMode2</a><br>
|
||||||
|
<a id="PIFACE-attr-portMode3">portMode3</a><br>
|
||||||
|
<a id="PIFACE-attr-portMode4">portMode4</a><br>
|
||||||
|
<a id="PIFACE-attr-portMode5">portMode5</a><br>
|
||||||
|
<a id="PIFACE-attr-portMode6">portMode6</a><br>
|
||||||
|
<a id="PIFACE-attr-portMode7">portMode7</a> tri|up,
|
||||||
[portMode<0..7>] = tri is default.<br>
|
[portMode<0..7>] = tri is default.<br>
|
||||||
This enables (up) or disables (tri) the internal pull-up resistor on the given input port.
|
This enables (up) or disables (tri) the internal pull-up resistor on the given input port.
|
||||||
You need to enable the pull-up if you want to read any of the on-board switches on the PiFace board.
|
You need to enable the pull-up if you want to read any of the on-board switches on the PiFace board.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user