Created
December 6, 2015 14:56
-
-
Save knielsen/4eee00544362f3fcb3f1 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
void shiftOut25(uint8_t dataPin, uint8_t clockPin, long val) | |
{ | |
long i; | |
for (i = 0; i < 25; i++) { | |
digitalWrite(dataPin, !!(val & ((long)1 << (long)(24 - i)))); | |
digitalWrite(clockPin, HIGH); | |
digitalWrite(clockPin, LOW); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment