publish test with HW1

Dependencies:   mbed

Fork of HelloWorld by Simon Ford

main.cpp

Committer:
robertwharrell
Date:
2014-02-03
Revision:
3:01c820a84ba3
Parent:
2:0ce54f153548

File content as of revision 3:01c820a84ba3:

#include "mbed.h"

DigitalOut led0(LED4);
DigitalOut led1(LED3);
DigitalOut led2(LED2);
DigitalOut led3(LED1);

int main() {
    while(1) {
        for(int count=0; count < 16; count++) {
            led0 = count & 0x1;
            led1 = count & 0x2;
            led2 = count & 0x4;
            led3 = count & 0x8;
            wait(1);
        }
    }
}