Hello.
I have an MCP23017 expander.
This works
fpsystem('sudo i2cset -y 1 0x21 0x13 0x00');
fpsystem('sudo i2cset -y 1 0x21 0x13 0xFF');
How to read the expander status?
This does not work
Var
S: Integer;
begin
S:= fpsystem('sudo i2cget -y 1 0x21 0x13');
Label1.Caption:= IntToStr(S);
end;