![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
First version
Dependencies: mbed EthernetInterface mbed-rto
Diff: main.cpp
- Revision:
- 71:5e8ba1357442
- Parent:
- 60:ef4592cf5397
--- a/main.cpp Mon May 14 20:02:42 2018 +0000 +++ b/main.cpp Tue May 15 16:53:09 2018 +0000 @@ -8,18 +8,20 @@ Ticker ledTicker; LEDDriver *driver; -void receive(Queue<int,8>* queue){ + +void receive(Queue<int,1>* queue){ Receiver receiver(queue); receiver.start(); } void driveLeds() { driver->drive(8); + //led2=!led2; } int main (void){ - Queue<int,8> queue; + Queue<int,1> queue; driver=new LEDDriver(&queue); - ledTicker.attach(&driveLeds, 0.002f); + ledTicker.attach(&driveLeds, 0.2f); receive(&queue); }