programa de prueba

Dependencies:   mbed

Committer:
Hotboards
Date:
Thu Apr 21 16:07:06 2016 +0000
Revision:
0:d2448f1fb20b
first release

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Hotboards 0:d2448f1fb20b 1 #include "mbed.h"
Hotboards 0:d2448f1fb20b 2
Hotboards 0:d2448f1fb20b 3 DigitalOut LED_1(PB_8);
Hotboards 0:d2448f1fb20b 4 DigitalOut LED_2(PB_9);
Hotboards 0:d2448f1fb20b 5
Hotboards 0:d2448f1fb20b 6
Hotboards 0:d2448f1fb20b 7
Hotboards 0:d2448f1fb20b 8 int main()
Hotboards 0:d2448f1fb20b 9 {
Hotboards 0:d2448f1fb20b 10 while(1)
Hotboards 0:d2448f1fb20b 11 {
Hotboards 0:d2448f1fb20b 12 LED_1 = 1;
Hotboards 0:d2448f1fb20b 13 LED_2 = 1;
Hotboards 0:d2448f1fb20b 14 wait(0.5); // 500 ms
Hotboards 0:d2448f1fb20b 15
Hotboards 0:d2448f1fb20b 16 LED_1 =0;
Hotboards 0:d2448f1fb20b 17 LED_2 = 0;
Hotboards 0:d2448f1fb20b 18
Hotboards 0:d2448f1fb20b 19 wait(0.5); // 500 ms
Hotboards 0:d2448f1fb20b 20 }
Hotboards 0:d2448f1fb20b 21 }
Hotboards 0:d2448f1fb20b 22