I'm looking for some example code on how to get the MCP23S08 working on an Arduino. I know about the SPI library, but it seams there's a lot to setup prior to even starting to address the GPIO part of it. Like I/O direction, the pullup resistor states and so on.
I have the data sheet, but it's too confusing to me to figure this out.
If someone could share some example code of a simple blink example, where a pin is setup to be output and then switched high and low repeatedly, I'm sure I could figure out the rest from there.
I feel like this is something very basic and it should be easy, but I can't find anything on it when I search the web.