A good explanation of SPI, I’ve never needed to look at the details of the protocol before.
On the performance side, how about precalculating those (1 << i) operations? Your for loop could step through a list with the 8 values to AND with? [128,64,32,16,8,4,2,1]
It took me just over a year to complete the book and it was published at the beginning of the year. I’m now starting on another complementary book and hope to learn from the experience of the first book.
Hi Bre, I remember reading this back in 2010 but it’s still as valid now as it was then. Since then I’ve learnt that abandoning projects = done and I’m happier because of that.
But I still think that some things are slow boil and can take a long time to get to the point of start, particularly if it involves ordering components from China.