To learn control of RGB Leds

Dependencies:   mbed

main.cpp

Committer:
div1104
Date:
2021-01-23
Revision:
0:bc639d030045

File content as of revision 0:bc639d030045:

#include "mbed.h"

DigitalOut myled(LED1);

int main() {
    while(1) {
        myled = 1;
        wait(0.5);
        myled = 0;
        wait(1);
    }
}