Hallo
habe an PC0 und an PC1 eine Led dran.
Und wollte das zuerst das die Led an PC0 an geht und nach 500 Millisekunden die Led an PC1 aber so das die Led an PC0 etwas dunkler leuchtet, ist das möglich?
Wenn ich es so mache:leuchtet immer nur die Led an PC0!Code:#include "asuro.h" int main(void) { while (1) { DDRC |= (1<<PC0); PORTC |= (1<<PC0); Msleep(500); DDRC |= (1<<PC1) | (1<<PC0); PORTC |= (1<<PC1); Msleep(500); } return 0; }
mfg
Philip![]()
Lesezeichen