![](/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:
- albireo987
- Date:
- 2018-05-14
- Revision:
- 68:df2d20effe00
- Parent:
- 63:ef4592cf5397
File content as of revision 68:df2d20effe00:
#include "mbed.h" #include "rtos.h" #include "Interpreter.h" #include "TCPlistener.h" #include "Receiver.h" #include "LEDDriver.h" void receive(Queue<int,8>* queue){ Receiver receiver(queue); receiver.start(); } void driveLeds(LEDDriver* driver) { driver->drive(8); } int main (){ Queue<int,8> queue; Ticker ledTicker; LEDDriver* driver=new LEDDriver(&queue); ledTicker.attach(&driveLeds, driver,0.002f); receive(&queue); }