While the Raspberry Pi has very good support for an I2C bus, a lot of very cool chips – including the in system programmer for just about every ATtiny and ATmega microcontroller – use an SPI bus.
The CM5 offers two standard ways of connecting more sophisticated devices in hardware – the Serial Peripheral Interface or SPI bus and the I2C or I-⁠squared-C bus. In addition there is a Linux driver ...
The interface to the SPI driver is generally referred to as SPIdev and there is a header file, spidev.h, which provides all of the definitions you need to make use of it. When you load the SPI driver ...