// The project converts decimal numbers from the range of 0-255
// to binary form and displays them using LED diodes
#define DATA 2
#define CLOCK 3
#define LATCH 4
void setup() {
pinMode(DATA, OUTPUT);
pinMode(CLOCK, OUTPUT);
pinMode(LATCH, OUTPUT);
}
void loop() {
for(byte i=0; i<=255; i++){
digitalWrite(LATCH, LOW);
shiftOut(DATA, CLOCK, LSBFIRST, i);
digitalWrite(LATCH, HIGH);
delay(200);
}
}