Created
February 21, 2019 10:05
-
-
Save jackphilippi/d413aaa8a87a86dd68a5d86d16dc9423 to your computer and use it in GitHub Desktop.
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 "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