blink blink

Dependencies:   mbed

main.cpp

Committer:
riad
Date:
2019-12-07
Revision:
0:4daa7414583c

File content as of revision 0:4daa7414583c:

#include "mbed.h"

BusOut led(D2,D3,D6,D9,D11,D12,A6,D13);

int main() {
    while (1) {
        led = 85;
        wait_ms(500);
        led = 170;
        wait_ms(500);
        
//01010101     170    1   2   4   8   16  32  64  128
//10101010      85    1   2   4   8   16  32  64  128
    
    }
}