Trying to get a SAM D10 to communicate with an MCP23017 I/O expander, and I am......well lost.
On the AVR this is a breeze. Write a simple little library to translate the registers for the IC, and drop in Peter Fleury's TWImaster library and all is pretty much done. BUt on these ARM devices it seems that EVERYTHING is a huge mess to accomplish. SPI looks like it's a little easier, but not by much.
Is there an example project that might save my sanity on I2C for these D-series units, or am I in deeper dung that I think?