![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
First version
Dependencies: mbed EthernetInterface mbed-rto
main.cpp
- Committer:
- KlaasGovaerts
- Date:
- 2018-05-02
- Revision:
- 36:aa6c6c177be2
- Parent:
- 32:537005b4a065
- Parent:
- 35:efdbfccf2678
- Child:
- 39:b39239c02c95
File content as of revision 36:aa6c6c177be2:
#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 thread; while(true){ thread.start(receive,&queue); thread.start(LEDStart,&queue); } }