![](/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:
- KlaasGovaerts
- Date:
- 2018-04-18
- Revision:
- 21:fe6a58e84929
- Parent:
- 20:4997b02d6a88
- Child:
- 25:4c673da1a3ae
- Child:
- 28:bf62c46acb3e
File content as of revision 21: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]); } } }