MAX11629EEE+ Arduino code

Usually as a rule of thumb for noob programmers like me, is never use a device someone else has not already done all the hard work and made a Arudino library 😉

So when I was designing my circuit I chose the MAX11629EEE+  8 channel ADC for it’s averaging abilities and not to have to wait for the internal ADC to finish conversion.

I have not really written anything directly to a SPI device, always used a ready made library.

But if this helps anyone – it’s how I did it: