![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
First version
Dependencies: mbed EthernetInterface mbed-rto
Diff: main.cpp
- Revision:
- 32:537005b4a065
- Parent:
- 30:915f6cb7ffa5
- Parent:
- 31:f8578276bd69
- Child:
- 36:aa6c6c177be2
- Child:
- 38:47c075a354b5
--- a/main.cpp Wed Apr 25 14:51:18 2018 +0000 +++ b/main.cpp Tue May 01 11:58:20 2018 +0000 @@ -3,17 +3,24 @@ #include "Interpreter.h" #include "TCPlistener.h" #include "Receiver.h" +#include "LEDDriver.h" void receive(Queue<int,8>* queue){ Receiver receiver(queue); receiver.start(); } +void LEDStart(Queue<int,8>* queue) +{ + LEDDriver driver = LEDDriver(queue); + driver.run(8); +} + int main (void){ Queue<int,8> queue; - - Thread recieverThread; + Thread thread; while(true){ - recieverThread.start(receive,&queue); + thread.start(receive,&queue); + thread.start(LEDStart,&queue); } }