Gast
#2542117
Mein AVR-Studio gibt mir bei meinem Programm folgende Fehler aus: ------------------------------------------------------------------------ c:16: lvalue required as increment operand c:18: lvalue required as decrement operand ------------------------------------------------------------------------ das Programm lautet: #include <avr/io.h> #include <util/delay.h> #ifndef F_CPU #define F_CPU 16000000UL #endif #define TON #define TASTER1 0b00001000 #define TASTER2 0b00000100 #define SUMMER 0b10000000 void ZEIT (void) { while(1) { TON = TON++; //c:16 _delay_ms(1000); TON = TON--; //c:18 _dalay_ms(1000); } } int main(void) { DDRD = 0b11100000; BEGIN:; if ((PORTD & TASTER1) == TASTER1) { while(1) { PORTD = SUMMER; _delay_ms(TON); PORTD = 0; _delay_ms(TON); if ((PORTD & TASTER2) == TASTER2) { goto BEGIN; } } } return 0; } ---------------------------------------------- wo ist da jetzt der Fehler? Kann mir jemand helfen?