Advertisement
ambersy314

Untitled

Jun 23rd, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. const int SER =8;
  2. const int LATCH = 9;
  3. const int CLK = 10;
  4.  
  5. void setup()
  6. {
  7. pinMode (SER, OUTPUT);
  8. pinMode (LATCH, OUTPUT);
  9. pinMode (CLK, OUTPUT);
  10.  
  11. digitalWrite (LATCH, LOW);
  12. shiftOut (SER, CLK, MSBFIRST, B00000000);
  13. digitalWrite (LATCH, HIGH);
  14. delay(1000);
  15. digitalWrite (LATCH, LOW);
  16. shiftOut (SER, CLK, MSBFIRST, B11111111);
  17. digitalWrite (LATCH, HIGH);
  18.  
  19. }
  20.  
  21. void loop() {
  22. // put your main code here, to run repeatedly:
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement