Is program me ek se jyaada LED control kia apan ne, BusOut use karke

Dependencies:   mbed

main.cpp

Committer:
akashlal
Date:
2016-06-28
Revision:
0:7f0702d1a493

File content as of revision 0:7f0702d1a493:

#include "mbed.h"

BusOut led(PTB18, PTB19,PTD1); 

int main()
{
    while(1)
    {
        led=0x6;
        wait(0.5);
        led=0x5;
        wait(0.5);
        led=0x3;
        wait(0.5);
        led=0x0;
        wait(0.5);
    }
}