This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |