![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
demo versie 16/05
Dependencies: EthernetInterface mbed-rto mbed
Fork of ProjectVLC by
main.cpp
- Committer:
- albireo987
- Date:
- 2018-05-02
- Revision:
- 38:47c075a354b5
- Parent:
- 32:537005b4a065
- Child:
- 42:962dbbd32f4c
- Child:
- 43:b69c7baa5d31
File content as of revision 38:47c075a354b5:
#include "mbed.h" #include "rtos.h" #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 threadeth; Thread driverThread; while(true){ threadeth.start(receive,&queue); driverThread.start(LEDStart,&queue); } }