Gast
#2635310
Ich habe schon wieder eine Fehlermeldung in AVR-Studio: too many arguments to function '_delay_ms' Mein Programm ist folgendes: ----------------------------------- #ifndef F_CPU #define F_CPU 16000000 //Quarz 16MHz #endif #include <avr/io.h> #include <util/delay.h> // Frequenzen #define ZEIT1 0,5 #define ZEIT2 0,7 #define no1 500/(2+ZEIT1) #define no2 500/(2+ZEIT2) int main(void) { DDRD = 0b11111111; char i; //SUMMER = PD7 //LED 1 = PD6 //LED 2 = PD5 while (1) { i=0; while (i <= no1) { PORTD = 0b00000011; _delay_ms(ZEIT1); PORTD = 0b00000001; _delay_ms(ZEIT1); i++; } i=0; while (i <= no2) { PORTD = 0b00000101; _delay_ms(ZEIT2); PORTD = 0b00000001; _delay_ms(ZEIT2); i++; } } return 0; } ------------------------------- Was ist nun der Fehler?