A lesson from the mbed
Yesterday in a short post about I2C I published a fragment of code for the mbed. I wondered at the time why I was posting here rather than on the very helpful mbed site. Here's why. Take a look at the code, and think about the library it's using. The mbed I2C library is about as simple as you could wish for, but it does everything you need. You can even specify the I2C data rate at run time. On other platforms that small change is a big deal; Arduino requires you to recompile the Wire library, and the BeagleBone requires you to recompile the kernel. The mbed library for SPI is just as good as its I2C library: simple, intuitive and complete . That's what we need on the BeagleBone and Raspberry Pi . We've been waiting for userland SPI support on the BeagleBone for a while, and we seem to be getting a mixed message from the kernel developers: It's really hard to do SPI right, and it will take a while It's done already; all you have to do...