Danke,
das funktioniert jetzt.
Jetzt noch eine zweite Frage:
Ich will mehrere (alle) LEDs gleichzeitig zufällig blinken lassen. Wenn ich jedoch in diesen Code einfach alle LEDs einfüge, dann arbeitet er sie einzeln ab und es sieht nach einem Wechselblinker aus. Geht das, dass man alle gleichzeitig zufällig blinken lässt (Abstand dazwischen nicht länger als 200-250ms)?

Code:
#include <nibobee/iodefs.h>
#include <nibobee/led.h>
#include <nibobee/delay.h>
#include <stdio.h>
#include <stdlib.h>

int main()
{

led_init();

while(1==1)
{

int irand(int a, int e)
{
    double r = e - a + 1;
    return a + (int)(r * rand()/(RAND_MAX+1.0));

} 

led_set(LED_L_RD, 1);
delay(irand(50,250));
led_set(LED_L_RD, 0);
delay(irand(50,250));

led_set(LED_L_YE, 1);
delay(irand(50,250));
led_set(LED_L_YE, 0);
delay(irand(50,250));

}
return 0;
}
Viele Grüße,
Manuel