Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //-----------------------------
- void setup()
- {
- DDRD = B11111100; // sets Arduino pins 1 to 7 as outputs, pin 1 and 0 as input
- }
- //-----------------------------
- void loop()
- {
- PORTD = 0x08; // Data
- PORTD = 0x04; // Clock HIGH
- PORTD = 0x00; // Clock LOW Latch LOW Data LOW
- PORTD = 0x10; // Latch HIGH
- // delayMicroseconds(1);
- PORTD = 0x00; // Data
- PORTD = 0x04; // Clock HIGH
- PORTD = 0x00; // Clock LOW Latch LOW Data LOW
- PORTD = 0x10; // Latch HIGH
- // delayMicroseconds(1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement