Agfianto 'Embedded' Putra / Mbed 2 deprecated pertama

Dependencies:   mbed

main.cpp

Committer:
agfi68
Date:
2011-12-08
Revision:
0:6d1bba714771

File content as of revision 0:6d1bba714771:

#include "mbed.h"

BusOut myleds(LED1, LED2, LED3, LED4);

int main() {
    for (int i=15; i>0; i--) {
        myleds = i;
        wait(1.0);
    }
    myleds = 0;
    while (1) {
        wait(0.2);
        myleds = 15 - myleds;
    }
}