52_I2C_MCP23017.pm: fix: update Inputs on start
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@7007 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -130,6 +130,14 @@ sub I2C_MCP23017_Init($$) { #Geraet beim anlegen/booten
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
#Output level wieder setzen die zweite
|
||||||
|
#$sbyte = 0;
|
||||||
|
#foreach (reverse 0..7) {
|
||||||
|
# $sbyte += $setsP{ReadingsVal($hash->{NAME},"PortA".$_,"off")} << ($_); #Werte fuer PortA aus dem Reading holen
|
||||||
|
# $sbyte += $setsP{ReadingsVal($hash->{NAME},"PortB".$_,"off")} << (8 + $_);
|
||||||
|
#}
|
||||||
|
#$msg = I2C_MCP23017_SetRegPair($hash, $sbyte, "GPIO") if $sbyte;
|
||||||
|
I2C_MCP23017_Get($hash, $hash->{NAME});
|
||||||
$hash->{STATE} = 'Initialized';
|
$hash->{STATE} = 'Initialized';
|
||||||
return ($msg) ? $msg : undef;
|
return ($msg) ? $msg : undef;
|
||||||
}
|
}
|
||||||
@@ -500,7 +508,7 @@ sub I2C_MCP23017_UpdReadings($$$) { #nach Rueckmeldung read
|
|||||||
<b>Set</b>
|
<b>Set</b>
|
||||||
<ul>
|
<ul>
|
||||||
<code>set <name> <port[,port[...]]> <value></code><br><br>
|
<code>set <name> <port[,port[...]]> <value></code><br><br>
|
||||||
where <code><port></code> is one of PortA0 to PortA7 / PortAB to PortB7 and <code><value></code> is one of:<br>
|
where <code><port></code> is one of PortA0 to PortA7 / PortB0 to PortB7 and <code><value></code> is one of:<br>
|
||||||
<ul>
|
<ul>
|
||||||
<code>
|
<code>
|
||||||
off<br>
|
off<br>
|
||||||
|
|||||||
Reference in New Issue
Block a user