![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
First version
Dependencies: mbed EthernetInterface mbed-rto
Diff: main.cpp
- Revision:
- 27:29948b116e82
- Parent:
- 26:4c673da1a3ae
- Child:
- 31:f8578276bd69
diff -r 4c673da1a3ae -r 29948b116e82 main.cpp --- a/main.cpp Wed Apr 25 13:17:55 2018 +0000 +++ b/main.cpp Wed Apr 25 14:13:22 2018 +0000 @@ -3,8 +3,15 @@ #include "Interpreter.h" #include "TCPlistener.h" #include "LEDDriver.h" + +void LEDStart(Queue<int,8>* queue) +{ + LEDDriver driver = LEDDriver(queue); + driver.run(8); +} int main (void){ + Thread thread; Queue<int,8> queue; int a=1; int b=2; @@ -27,7 +34,6 @@ while(true){ // listener.receiveSegment(command,sizeof(command)); // interpreter.executeCommand(command); - LEDDriver driver = LEDDriver(&queue); - driver.run(8); + thread.start(LEDStart,&queue); } }