Skip to content

Instantly share code, notes, and snippets.

#include "pins_arduino.h"
#include "wiring_private.h"
void spiwrite(uint8_t c)
{
int8_t i;
// MSB first, clock low when inactive (CPOL 0), data valid on leading edge (CPHA 0)
// Make sure clock starts low
// slow version - built in shiftOut function