voor willem test

Dependencies:   4DGL MODSERIAL mbed mbos

Committer:
LvdK
Date:
Mon Nov 26 16:38:37 2012 +0000
Revision:
2:cdc3ccd10040
Parent:
0:6f71ca095e78
Child:
3:58382fa6e555
aanroep decoder in main() (dus NIET met interrupt)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
LvdK 0:6f71ca095e78 1 #include "mbed.h"
LvdK 0:6f71ca095e78 2
LvdK 0:6f71ca095e78 3 DigitalOut led1(LED1); // TEST Led1
LvdK 0:6f71ca095e78 4
LvdK 0:6f71ca095e78 5
LvdK 0:6f71ca095e78 6 void init_USB();
LvdK 2:cdc3ccd10040 7 void decode_string();
LvdK 0:6f71ca095e78 8
LvdK 0:6f71ca095e78 9 main()
LvdK 0:6f71ca095e78 10 {
LvdK 0:6f71ca095e78 11
LvdK 0:6f71ca095e78 12 init_USB(); // setup USB communication
LvdK 0:6f71ca095e78 13
LvdK 0:6f71ca095e78 14 while (1) { // this is my endless main loop :
LvdK 0:6f71ca095e78 15 led1 = !led1; // : toggle LED1 to show this loop
LvdK 0:6f71ca095e78 16 wait(0.5); // : can be interrupted ???????????
LvdK 2:cdc3ccd10040 17 decode_string(); // : call decoder to proces any valid command string received
LvdK 0:6f71ca095e78 18 }
LvdK 0:6f71ca095e78 19 }