demo versie 16/05
Dependencies: EthernetInterface mbed-rto mbed
Fork of ProjectVLC by
main.cpp
- Committer:
- albireo987
- Date:
- 2018-04-25
- Revision:
- 26:29948b116e82
- Parent:
- 25:4c673da1a3ae
- Child:
- 29:f8578276bd69
File content as of revision 26:29948b116e82:
#include "mbed.h" #include "rtos.h" #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; int c=3; int d=4; queue.put(&(a)); queue.put(&(b)); queue.put(&(c)); queue.put(&(d)); queue.put(&(d)); queue.put(&(d)); queue.put(&(d)); queue.put(&(d)); // Interpreter interpreter(LED); // TCPlistener listener; // char command[512]; while(true){ // listener.receiveSegment(command,sizeof(command)); // interpreter.executeCommand(command); thread.start(LEDStart,&queue); } }