HEF4514BP

 van VIER naar ZESTIEN

int Latch  = 8;
int Enable = 7;
int pinA0  = 3;
int pinA1  = 4;
int pinA2  = 5;
int pinA3  = 6;

void setup(){
  pinMode(Latch, OUTPUT);
  pinMode(Enable, OUTPUT);
  pinMode(pinA0, OUTPUT);
  pinMode(pinA1, OUTPUT);
  pinMode(pinA2, OUTPUT);
  pinMode(pinA3, OUTPUT);
  pinMode(pinA3, OUTPUT);
  digitalWrite(Enable, LOW);
 }

void loop(){

  digitalWrite(Latch, HIGH);
    digitalWrite(pinA0, HIGH);
    digitalWrite(pinA1, LOW);
    digitalWrite(pinA2, HIGH);
    digitalWrite(pinA3, HIGH);
    digitalWrite(Latch, LOW);
    delay(1000);
  digitalWrite(Latch, HIGH);
    digitalWrite(pinA0, LOW);
    digitalWrite(pinA1, LOW);
    digitalWrite(pinA2, HIGH);
    digitalWrite(pinA3, HIGH);
  digitalWrite(Latch, LOW);
    delay(1000);
}

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>