// 7 segment display using direct register access without using array functions.
// Created by kidkara.


void setup() {
 DDRD=B11111100;
 DDRB=B00000001;
}

void loop() {
PORTD = B11111100;// 0
PORTB = B00000000;
delay(1000);
PORTD = B00011000;// 1
delay(1000);
PORTD = B01101100; // 2
PORTB = B00000001;
delay(1000);
PORTD = B00111100; // 3
delay(1000);
PORTD = B10011000; // 4  
delay(1000); // 4
PORTD = B10110100;// 5
delay(1000);
PORTD = B11110100;// 6
delay(1000);
PORTD = B00011100;// 7
PORTB = B00000000;
delay(1000);
PORTD = B11111100;// 8
PORTB = B00000001;
delay(1000);
PORTD = B10111100;//9
delay(1000);

}