DigitalOut

It is difficult to make a circuit, to explain on web page.

And make a circuit one's own special way.

like this:

digital out


1 comment

25 Apr 2020

#include "mbed.h"
DigitalOut redled(LED1);
DigitalOut greenled(LED2);
int main()
{
    while(1)
    {
        redled=1;
        greenled=0;
        wait(1);
        redled=0;
        greenled=1;
        wait(1);
    }
}

You need to log in to post a comment