Skip to content

Instantly share code, notes, and snippets.

@jackphilippi
Created February 21, 2019 10:05
Show Gist options
  • Save jackphilippi/d413aaa8a87a86dd68a5d86d16dc9423 to your computer and use it in GitHub Desktop.
Save jackphilippi/d413aaa8a87a86dd68a5d86d16dc9423 to your computer and use it in GitHub Desktop.
#include "SPI.h"
int DATA = 11;
int CLOCK = 13;
int LATCH = 5;
void setup() {
Serial.begin(115200);
SPI.begin();
}
void loop() {
digitalWrite(LATCH, LOW);
SPI.transfer(B11111111);
SPI.transfer(B11111111);
digitalWrite(LATCH, HIGH);
digitalWrite(LATCH, LOW);
delay(1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment