![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
demo versie 16/05
Dependencies: EthernetInterface mbed-rto mbed
Fork of ProjectVLC by
main.cpp@29:f8578276bd69, 2018-04-25 (annotated)
- Committer:
- albireo987
- Date:
- Wed Apr 25 14:55:17 2018 +0000
- Revision:
- 29:f8578276bd69
- Parent:
- 26:29948b116e82
- Child:
- 32:537005b4a065
wip;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
KlaasGovaerts | 0:98e4994363bf | 1 | #include "mbed.h" |
KlaasGovaerts | 21:fe6a58e84929 | 2 | #include "rtos.h" |
KlaasGovaerts | 19:5ee34e60a31d | 3 | #include "Interpreter.h" |
KlaasGovaerts | 6:9903a0906a72 | 4 | #include "TCPlistener.h" |
albireo987 | 25:4c673da1a3ae | 5 | #include "LEDDriver.h" |
albireo987 | 26:29948b116e82 | 6 | |
albireo987 | 26:29948b116e82 | 7 | void LEDStart(Queue<int,8>* queue) |
albireo987 | 26:29948b116e82 | 8 | { |
albireo987 | 26:29948b116e82 | 9 | LEDDriver driver = LEDDriver(queue); |
albireo987 | 26:29948b116e82 | 10 | driver.run(8); |
albireo987 | 26:29948b116e82 | 11 | } |
KlaasGovaerts | 3:1c9645acea2f | 12 | |
KlaasGovaerts | 3:1c9645acea2f | 13 | int main (void){ |
albireo987 | 26:29948b116e82 | 14 | Thread thread; |
albireo987 | 29:f8578276bd69 | 15 | Queue<int,8> queue; |
albireo987 | 25:4c673da1a3ae | 16 | |
albireo987 | 25:4c673da1a3ae | 17 | // Interpreter interpreter(LED); |
albireo987 | 25:4c673da1a3ae | 18 | // TCPlistener listener; |
albireo987 | 25:4c673da1a3ae | 19 | // char command[512]; |
KlaasGovaerts | 4:0d013b7e4dea | 20 | |
KlaasGovaerts | 21:fe6a58e84929 | 21 | while(true){ |
albireo987 | 25:4c673da1a3ae | 22 | // listener.receiveSegment(command,sizeof(command)); |
albireo987 | 25:4c673da1a3ae | 23 | // interpreter.executeCommand(command); |
albireo987 | 26:29948b116e82 | 24 | thread.start(LEDStart,&queue); |
KlaasGovaerts | 21:fe6a58e84929 | 25 | } |
KlaasGovaerts | 4:0d013b7e4dea | 26 | } |