blink blink

Dependencies:   mbed

Committer:
riad
Date:
Sat Dec 07 14:32:00 2019 +0000
Revision:
0:4daa7414583c
blink

Who changed what in which revision?

UserRevisionLine numberNew contents of line
riad 0:4daa7414583c 1 #include "mbed.h"
riad 0:4daa7414583c 2
riad 0:4daa7414583c 3 BusOut led(D2,D3,D6,D9,D11,D12,A6,D13);
riad 0:4daa7414583c 4
riad 0:4daa7414583c 5 int main() {
riad 0:4daa7414583c 6 while (1) {
riad 0:4daa7414583c 7 led = 85;
riad 0:4daa7414583c 8 wait_ms(500);
riad 0:4daa7414583c 9 led = 170;
riad 0:4daa7414583c 10 wait_ms(500);
riad 0:4daa7414583c 11
riad 0:4daa7414583c 12 //01010101 170 1 2 4 8 16 32 64 128
riad 0:4daa7414583c 13 //10101010 85 1 2 4 8 16 32 64 128
riad 0:4daa7414583c 14
riad 0:4daa7414583c 15 }
riad 0:4daa7414583c 16 }