Brauche noch Hilfe bei einem meiner andren Programme...
Wenn ich dieses Prog. kompilieren will bekomme ich immer folgende Fehlermeldung:Code:#include "asuro.h" int main(void) { Init(); StatusLED(RED); MotorDir(FWD,FWD); MotorSpeed (180,180); if (PollSwitch(2)) { MotorDir(RWD,RWD); MotorSpeed(150,150); Sleep (216); MotorDir(FWD,FWD); MotorSpeed(180,130); Sleep (216); MotorSpeed(180,180); } else if (PollSwitch(5)) { MotorDir(RWD,RWD); MotorSpeed(150,150); Sleep (216); MotorDir(FWD,FWD); MotorSpeed(130,180); Sleep (216); MotorSpeed(180,180); } while(1); // Endlosschleife return 0;}
Need help! Ich krieg das echt nit hinCode:-------- begin -------- avr-gcc --version avr-gcc (GCC) 3.3.1 Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. avr-gcc -c -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=test.lst test.c -o test.o test.c: In function `main': test.c:7: error: too many arguments to function `PollSwitch' test.c:16: error: too many arguments to function `PollSwitch' make: *** [test.o] Error 1 > Process Exit Code: 2![]()






Zitieren

Lesezeichen