Seeedstudio Arch Examples : GPIO - BusOut example

Dependencies:   mbed

Fork of Arch_GPIO_Ex3 by Visweswara R

main.cpp

Committer:
viswesr
Date:
2013-09-17
Revision:
4:ba523da0d68a
Parent:
3:a72374052938

File content as of revision 4:ba523da0d68a:

#include "mbed.h"

BusOut onboardLEDs(P1_8,P1_9,P1_10,P1_11); /*P1_8 - P1_11 are LED1 - LED4*/

int main()
{
    int i;
    while(1) {
        for(i=0; i<16; i++) {
            onboardLEDs.write(i); /* LED1 is LSB  and LED4 is MSB*/
            wait(0.5);
        }

    }
}