Advertisement
sirik13

chief

Apr 26th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. const int SER =8;
  2. const int LATCH =9;
  3. const int CLK =10;
  4.  
  5.  
  6. void setup() {
  7. pinMode (SER, OUTPUT);
  8. pinMode (LATCH, OUTPUT);
  9. pinMode (CLK, OUTPUT);
  10.  
  11. }
  12.  
  13. void loop() {
  14.  
  15. digitalWrite (LATCH, LOW);
  16. shiftOut (SER, CLK, MSBFIRST, B11111111);
  17. digitalWrite (LATCH, HIGH);
  18. delay (100);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement