Hi,
I recently purchased UNO R3. I simply created a Led pattern. i just want to turn off/on the pattern.
I am using 74HC595N Shift register. So please add the blink function in the code and also tell me how to use output enable pin (13) in the code. I am learning arduino programing and other things.
i will be very thankful to you.
here the code is .......
int latchPin = 5;
int ClockPin = 6;
int dataPin = 4;
int led[8] = {0,1,1,0,0,1,1,0};
void setup()
{
pinMode(latchPin,OUTPUT);
pinMode(ClockPin, OUTPUT);
pinMode(dataPin, OUTPUT);
digitalWrite(latchPin, LOW);
for(int i=0;i<8;i++)
{
digitalWrite(ClockPin,LOW);
digitalWrite(dataPin,led*);*
-
digitalWrite(ClockPin,HIGH);*
-
} *
-
digitalWrite(latchPin, HIGH); *
-
}*
void loop() {
}