// *** Lauflicht 1.0 (c) Oliver Mezger 5.3.2010

#include <avr/io.h>     // Definitionen laden
#include <util/delay.h> // Delay-Bibliothek laden

// Lauflicht mit STK 200 (LED neg. Logik) und AT90S2313
int main(){
  PORTB=0xff;   // alle LED aus
  DDRB=0xff;    // PB als Ausgang
  while(1){     // Endlosschleife
    if (PORTB == 0xff)  // wenn alle LED aus
      PORTB = 0xfe;     // LED0 an
    else
      PORTB = PORTB *2 +1;  // naechste LED
    _delay_ms(100);         // warte 100ms
  }
  return 0;
}