Hi, i use this code to activate the internal resistor of the MCP23017.
after my first test, it seems that this code (the IDE did not find it as an error) did not works as all my output of the MCP2 (got two mcp on I2C bus) are activated. They are in fact LOW because the 16 channel relays goes all actived. This card is active low input.
are you asking about pullups on the I2C bus or MCP23017 input pins?
In fact, i need to be sure that on power up the mcp23017, all the output to be HIGH (not activated).
The 16 channel relay connected to those output are "active low".
So actually, on power up all the output are low so ALL the relays are activated and can damage the coil connected to those relays contact.
@trainluc
In your previous topic you were using the GPIO pins of the Mega to drive the inputs to the relay module. In this topic you are driving the relay module inputs with MCP23017 I/O expanders and have a problem similar to before, correct? You would like the MCP23017 outputs to be HIGH when the sketch starts.
Yes and no
The problem is similar in the fact that my output as to be HIGH on the i/o expender.
The other topic was about the arduino itself. IT's fixed and now working as need.
The new topic it is about the expender only. Yes the output if my 2nd mcp need to be HIGH on powerup.