[solved]mcp23018 not working

The second line of the datasheet says "I/O pins default to input". Do you need to set your output pins as outputs?

The outputs are Open Drain which means they switch between DISCONNECTED and GROUND. Do you have the LED connected between +5 and the output (with an appropriate current limiting resistor in series)?