![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
demo versie 16/05
Dependencies: EthernetInterface mbed-rto mbed
Fork of ProjectVLC by
Diff: main.cpp
- Revision:
- 28:bf62c46acb3e
- Parent:
- 21:fe6a58e84929
- Child:
- 30:996da48a265c
--- a/main.cpp Wed Apr 25 09:14:53 2018 +0000 +++ b/main.cpp Wed Apr 25 13:25:13 2018 +0000 @@ -4,20 +4,14 @@ #include "TCPlistener.h" int main (void){ - int LED[8]; - for(int i=0;i<8;i++){ - LED[i]=-1; - } - Interpreter interpreter(LED); + Queue<int,8> *queue=new Queue<int,8>(); + + Interpreter interpreter(queue); TCPlistener listener; char command[512]; while(true){ listener.receiveSegment(command,sizeof(command)); interpreter.executeCommand(command); - - for(int i=0;i<8;i++){ - printf("LED %i, richting: %i\r\n",i,LED[i]); - } } }