![](/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-05-09
- Revision:
- 62:237e32fd3555
- Parent:
- 61:738f026cf667
- Child:
- 63:ef4592cf5397
File content as of revision 62:237e32fd3555:
#include "mbed.h" #include "rtos.h" #include "Interpreter.h" #include "TCPlistener.h" #include "Receiver.h" #include "LEDDriver.h" Ticker ledTicker; DigitalOut led2(LED2); LEDDriver *driver; void receive(Queue<int,8>* queue){ Receiver receiver(queue); receiver.start(); } void driveLeds() { led2 = !led2; driver->drive(8); } int main (void){ Queue<int,8> queue; driver=new LEDDriver(&queue); ledTicker.attach(&driveLeds, 0.002f); receive(&queue); }