![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
First version
Dependencies: mbed EthernetInterface mbed-rto
main.cpp
- Committer:
- KlaasGovaerts
- Date:
- 2018-04-18
- Revision:
- 20:fe6a58e84929
- Parent:
- 19:4997b02d6a88
- Child:
- 24:bf62c46acb3e
- Child:
- 26:4c673da1a3ae
File content as of revision 20:fe6a58e84929:
#include "mbed.h" #include "rtos.h" #include "Interpreter.h" #include "TCPlistener.h" int main (void){ int LED[8]; for(int i=0;i<8;i++){ LED[i]=-1; } Interpreter interpreter(LED); TCPlistener listener; char command[512]; while(true){ listener.receiveSegment(command,sizeof(command)); interpreter.executeCommand(command); for(int i=0;i<8;i++){ printf("LED %i, richting: %i\r\n",i,LED[i]); } } }