diff --git a/fhem/FHEM/52_I2C_MCP23017.pm b/fhem/FHEM/52_I2C_MCP23017.pm index 6809d10fc..53828753c 100644 --- a/fhem/FHEM/52_I2C_MCP23017.pm +++ b/fhem/FHEM/52_I2C_MCP23017.pm @@ -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'; return ($msg) ? $msg : undef; } @@ -500,7 +508,7 @@ sub I2C_MCP23017_UpdReadings($$$) { #nach Rueckmeldung read Set