Yun Jin Yonggledel임동교
Published © GPL3+

Innovation Lab #18 Shift Register_LED

Bongilcheon High School_Innovation Lab Project.

EasyProtip15 minutes205
Innovation Lab #18 Shift Register_LED

Things used in this project

Story

Read more

Schematics

Shift Register_LED

Shift Register_LED
18 2 rvaspgaoab

Code

Shift Register_LED

Arduino
Control eight LEDs with the Shift Register.
int latchPin = 4;
int clockPin = 3;
int dataPin = 2;

void setup() 

{
  pinMode(latchPin, OUTPUT);
  pinMode(dataPin, OUTPUT); 
  pinMode(clockPin, OUTPUT);
}

void loop() 
{
  for(int i=0; i<8; i++){
    digitalWrite(latchPin, LOW);
    shiftOut(dataPin, clockPin, LSBFIRST, 1<<i);
    digitalWrite(latchPin, HIGH);
    delay(500);
  }
}

Credits

Yun Jin Yong

Yun Jin Yong

1 project • 7 followers
Contact
gledel

gledel

54 projects • 38 followers
Looking back on my childhood, I was happy when I was making something and I was proud of myself. "Making is instinct!"
Contact
임동교

임동교

0 projects • 7 followers
Contact

Comments