int i,K;
void setup() {
// put your setup code here, to run once:
pinMode(30,OUTPUT);
pinMode(31,OUTPUT);
pinMode(32,OUTPUT);
pinMode(33,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
for(int i=12; i >= 0; i--){
PORTC=B10000000; delay(10);
PORTC=B01000000; delay(10);
PORTC=B00100000; delay(10);
PORTC=B00010000; delay(10);
}
delay(1000);
for(int i=12; i >= 0; i--){
PORTC=B10000000; delay(10);
PORTC=B01000000; delay(10);
PORTC=B00100000; delay(10);
PORTC=B00010000; delay(10);
}
delay(1000);
for(int K=0; K<=24; K++){
PORTC=B00010000; delay(10);
PORTC=B00100000; delay(10);
PORTC=B01000000; delay(10);
PORTC=B10000000; delay(10);
}
delay(1000);
for(int K=0; K<=24; K++){
PORTC=B00010000; delay(10);
PORTC=B00100000; delay(10);
PORTC=B01000000; delay(10);
PORTC=B10000000; delay(10);
}
delay(1000);
}