9 years, 10 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); 
        }
    }
}

Question relating to:

kfdajkldfa
Be the first to answer this question.