Red Yellow Green Cyan Blue Magenta

Dependencies:   mbed

main.cpp

Committer:
div1104
Date:
2021-01-23
Revision:
0:7bcb13d38669

File content as of revision 0:7bcb13d38669:

#include "mbed.h"

BusOut myled(LED3,LED2,LED1);

int main() {
    while(1) {
        myled = 0x03;
        wait(0.83);
        myled = 0x01;
        wait(0.83);
        myled = 0x05;
        wait(0.83);
        myled = 0x04;
        wait(0.83);
        myled = 0x06;
        wait(0.83);
        myled = 0x02;
        wait(0.83);
        
    }
}