avatar
Untitled

Guest 33 30th Nov, 2019

                                           
                         #define DATA 8
#define LATCH 9
#define CLK 10
byte dataArray[] = {1, 1, 1, 0, 0, 0, 1, 1};
byte leds = 0b11111110;
void setup()

{
  pinMode(DATA, OUTPUT);
  pinMode(LATCH, OUTPUT);
  pinMode(CLK, OUTPUT);
  digitalWrite(LATCH, HIGH);
}

void loop()
{
  //  bitSet(leds, i);
  digitalWrite(LATCH, LOW);
  shiftOut(DATA, CLK, LSBFIRST, leds);
  digitalWrite(LATCH, HIGH);
  while (1);
}
                      
                                       
To share this paste please copy this url and send to your friends
RAW Paste Data
Recent Pastes