Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const int SER =8;
- const int LATCH = 9;
- const int CLK = 10;
- void setup()
- {
- pinMode (SER, OUTPUT);
- pinMode (LATCH, OUTPUT);
- pinMode (CLK, OUTPUT);
- digitalWrite (LATCH, LOW);
- shiftOut (SER, CLK, MSBFIRST, B00000000);
- digitalWrite (LATCH, HIGH);
- delay(1000);
- digitalWrite (LATCH, LOW);
- shiftOut (SER, CLK, MSBFIRST, B11111111);
- digitalWrite (LATCH, HIGH);
- }
- void loop() {
- // put your main code here, to run repeatedly:
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement