How can I define a port extender MCP23s17 pin in Arduino
If you use this arduino library:

#define LED_PIN 15

mcp.pinMode(LED_PIN, LOW); //set led pin on the MCP23S17 to an OUTPUT

mcp.digitalWrite(LED_PIN, LOW)