![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
First version
Dependencies: mbed EthernetInterface mbed-rto
Diff: main.cpp
- Revision:
- 24:bf62c46acb3e
- Parent:
- 20:fe6a58e84929
- Child:
- 29: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]); - } } }