Hi Leute,


Ich hoffe ihr könnt mir helfen, denn ich weiss nicht was ich an diesem Programm ändern soll.
Code:
#include "asuro.h"


unsigned char M;


int main(void)
{
	Init();
	M=255;
	MotorDir(FWD,FWD);
	MotorSpeed(M,M);
	while(1);
	  {
	      if (Pollswitch()>0)
	        {
		     M=100;
		     StatusLED(RED);
		     BackLED(ON,ON);
		     MotorDir(RWD,RWD);
		     MotorSpeed(M,M);
		     Msleep(3000);
		    }
	   else 
	        {
			 M=250;
			 StatusLed(GREEN);
			 MotorDir(FWD,FWD);
			 MotorSpeed(M,M);
             BackLED(OFF,OFF);
			}
	   }
	return 0;
}
Ich progge mit Programmers Notepad 2 und es kommt keine Fehlermeldung, aber 3 Warnungen:

test.c:15: warning: implicit declaration of function `Pollswitch'
test.c:22: warning: implicit declaration of function `Msleep'
test.c:27: warning: implicit declaration of function `StatusLed'

Nachdem ich das Programm geflasht habe, fährt er immer vorwärts und das wars.
Normal sollte er vorwärts fahren und sobald er auf ein Hindernis trifft 3 Sek. rückwärts fahren.

Ich brauche eure Hilfe

MfG
Momchilo