![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
First version
Dependencies: mbed EthernetInterface mbed-rto
main.cpp
- Committer:
- albireo987
- Date:
- 2018-04-25
- Revision:
- 26:4c673da1a3ae
- Parent:
- 20:fe6a58e84929
- Child:
- 27:29948b116e82
File content as of revision 26:4c673da1a3ae:
#include "mbed.h" #include "rtos.h" #include "Interpreter.h" #include "TCPlistener.h" #include "LEDDriver.h" int main (void){ 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); LEDDriver driver = LEDDriver(&queue); driver.run(8); } }