Mein erstes Programm will nicht
Hi,
hab nach ewigem nichts tun meinen ASURO fertig und die Anleitung gelesen.
Jetzt wollte ich die Status LED blinken lassen (Abwechselnd Grün und Rot).
So hab ich mir das gedacht:
Code:
#include "asuro.h"
int main(void)
{
int i;
Init();
StatusLED(GREEN);
while(1) {
for(i=0, i<=1000, i++) {
sleep(72);
}
StatusLED(RED);
for(i=0, i<=1000, i++) {
sleep(72);
}
StatusLED(GREEN);
}
while(1);
return 0;
}
Und das is der Fehler:
Zitat:
asuro.h:52: error: previous declaration of 'StatusLED' was here
test.c:16: error: conflicting types for 'StatusLED'
asuro.h:52: error: previous declaration of 'StatusLED' was here
test.c:16: warning: data definition has no type or storage class
make: *** [test.o] Error 1
> Process Exit Code: 2
> Time Taken: 00:00
Als erstes würde mich interessiern ob in der Fehlermeldung irgendwo die Zeile vom Fehler steht.
Und natürlich ein Tipp was falsch ist.
Gruß,
Lukas