![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
First version
Dependencies: mbed EthernetInterface mbed-rto
main.cpp
- Committer:
- KlaasGovaerts
- Date:
- 2018-05-15
- Revision:
- 74:8c0068ed7c1e
- Parent:
- 60:ef4592cf5397
File content as of revision 74:8c0068ed7c1e:
#include "mbed.h" #include "rtos.h" #include "Interpreter.h" #include "TCPlistener.h" #include "Receiver.h" #include "LEDDriver.h" Ticker ledTicker; LEDDriver *driver; void receive(Queue<QueueMessage,1>* queue){ Receiver receiver(queue); receiver.start(); } void driveLeds() { driver->drive(8); } int main (void){ Queue<QueueMessage,1> queue; driver=new LEDDriver(&queue); ledTicker.attach(&driveLeds, 0.002f); receive(&queue); }