![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
First version
Dependencies: mbed EthernetInterface mbed-rto
Diff: main.cpp
- Revision:
- 45:2d877f01ca7b
- Parent:
- 44:ffac07bff0d8
- Child:
- 47:8fe84f455571
--- a/main.cpp Wed May 02 15:04:28 2018 +0000 +++ b/main.cpp Wed May 09 07:24:39 2018 +0000 @@ -11,13 +11,13 @@ receiver.start(); } -/* -void LEDStart(Queue<int,8>* queue) + +void LEDStart(Queue<int,8>* queue,Ticker* ticker) { printf("LEDStart executed.\r\n"); LEDDriver driver = LEDDriver(queue); - driver.run(8); -} */ + driver.run(ticker); +} int main (void){ printf("main executed.\r\n"); @@ -31,11 +31,6 @@ //} Ticker ticker; - printf("Ticker created.\r\n"); - LEDDriver driver(&queue); - printf("Driver created.\r\n"); - driver.run(&ticker); - printf("Past driver run.\r\n"); - receive(&queue); + LEDStart(&queue,&ticker); }