![](/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:
- 41:b39239c02c95
- Parent:
- 36:aa6c6c177be2
--- a/main.cpp Wed May 02 08:48:33 2018 +0000 +++ b/main.cpp Wed May 02 11:22:09 2018 +0000 @@ -6,22 +6,25 @@ #include "LEDDriver.h" void receive(Queue<int,8>* queue){ + printf("Receive method executed.\r\n"); Receiver receiver(queue); receiver.start(); } void LEDStart(Queue<int,8>* queue) { + printf("LEDStart method executed.\r\n"); LEDDriver driver = LEDDriver(queue); driver.run(8); } int main (void){ Queue<int,8> queue; - Thread thread; + Thread receiverthread; + Thread LEDthread; while(true){ - thread.start(receive,&queue); - thread.start(LEDStart,&queue); + receiverthread.start(receive,&queue); + LEDthread.start(LEDStart,&queue); } }