Mh, jetzt sieht das ganze so aus und nach dem Anmachen leuten nur noch die beiden hinteren LEDS und die vordere neben dem Powerswitch:

Code:
#include "asuro.h"

#define dunkel 50
#define rechts 1
#define links 0

void warte (int s)
{
    int x = 0;
   for (x = 0; x <s; x++) Sleep(72);
}

int main(void)
{

   unsigned int Licht[2];
   int white;
   FrontLED(ON);
   warte(1000);
   LineData(Licht);
   white = (Licht[links]+Licht[rechts])/2-60;
   MotorDir(FWD,FWD);
   MotorSpeed(180,180);
   int i = 0;
   Init();
   
   while (1)
   {
   
     LineData(Licht);
     MotorSpeed(180,180);
     if(PollSwitch()>0)
      {
      MotorDir(BREAK,BREAK);
      MotorSpeed(0,0);
	  BackLED(ON,ON);
      }
     while (Licht[links] > white && Licht[rechts] > white)
     {
       MotorDir(FWD,FWD);
       LineData(Licht);
     }
     MotorSpeed(180,180);
     while (Licht[links] < white)
     {
       MotorDir(FWD,BREAK);
       LineData(Licht);
        while (Licht[rechts] < white)
       {
         MotorSpeed(255,180);
         LineData(Licht);
          while (Licht[links] > white)
         {
           MotorSpeed(255,180);
           LineData(Licht);
         }   
       }   
       MotorSpeed(180,180);
     }   
     MotorSpeed(180,180);
      while (Licht[rechts] < white)
     {
       MotorDir(BREAK,FWD);
       LineData(Licht);
        while (Licht[links] < white)
       {
         MotorSpeed(180,255);
         LineData(Licht);
          while (Licht[rechts] > white)
         {
           MotorSpeed(180,255);
           LineData(Licht);
         }   
       }   
       MotorSpeed(180,180);
     }
      }
   MotorDir(BREAK,BREAK);
   MotorSpeed(0,0);
   

return 0;

}