![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
demo versie 16/05
Dependencies: EthernetInterface mbed-rto mbed
Fork of ProjectVLC by
main.cpp@38:47c075a354b5, 2018-05-02 (annotated)
- Committer:
- albireo987
- Date:
- Wed May 02 12:44:26 2018 +0000
- Revision:
- 38:47c075a354b5
- Parent:
- 32:537005b4a065
- Child:
- 42:962dbbd32f4c
- Child:
- 43:b69c7baa5d31
ticker werkend ;
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" |
KlaasGovaerts | 30:996da48a265c | 5 | #include "Receiver.h" |
albireo987 | 25:4c673da1a3ae | 6 | #include "LEDDriver.h" |
KlaasGovaerts | 30:996da48a265c | 7 | |
KlaasGovaerts | 31:915f6cb7ffa5 | 8 | void receive(Queue<int,8>* queue){ |
KlaasGovaerts | 30:996da48a265c | 9 | Receiver receiver(queue); |
KlaasGovaerts | 30:996da48a265c | 10 | receiver.start(); |
KlaasGovaerts | 30:996da48a265c | 11 | } |
KlaasGovaerts | 30:996da48a265c | 12 | |
albireo987 | 26:29948b116e82 | 13 | void LEDStart(Queue<int,8>* queue) |
albireo987 | 26:29948b116e82 | 14 | { |
albireo987 | 26:29948b116e82 | 15 | LEDDriver driver = LEDDriver(queue); |
albireo987 | 26:29948b116e82 | 16 | driver.run(8); |
albireo987 | 26:29948b116e82 | 17 | } |
albireo987 | 32:537005b4a065 | 18 | |
KlaasGovaerts | 3:1c9645acea2f | 19 | int main (void){ |
KlaasGovaerts | 31:915f6cb7ffa5 | 20 | Queue<int,8> queue; |
albireo987 | 38:47c075a354b5 | 21 | Thread threadeth; |
albireo987 | 38:47c075a354b5 | 22 | Thread driverThread; |
KlaasGovaerts | 21:fe6a58e84929 | 23 | while(true){ |
albireo987 | 38:47c075a354b5 | 24 | threadeth.start(receive,&queue); |
albireo987 | 38:47c075a354b5 | 25 | driverThread.start(LEDStart,&queue); |
KlaasGovaerts | 31:915f6cb7ffa5 | 26 | } |
KlaasGovaerts | 4:0d013b7e4dea | 27 | } |