Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 9 months ago.
hier is de code
// Toggle a LED
#include "mbed.h"
DigitalOut led(LED1);
int num;
int main()
{
while(1)
{
num = 0;
if (num%2 = 0)
{
num = num + 1;
led = true;
wait(1.0);
}else
{
led = false;
wait (0.5);
}
}
}