SPI library This library allows you to communicate with SPI devices, with the Arduino as the master device. ... and whether the clock is idle when high or low (called the clock polarity). The four modes combine polarity and phase according to this table: