![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
First version
Dependencies: mbed EthernetInterface mbed-rto
Diff: main.cpp
- Revision:
- 44:ffac07bff0d8
- Parent:
- 42:bb1d9d8a9fe4
- Child:
- 45:2d877f01ca7b
--- a/main.cpp Wed May 02 14:03:16 2018 +0000 +++ b/main.cpp Wed May 02 15:04:28 2018 +0000 @@ -11,23 +11,31 @@ receiver.start(); } +/* void LEDStart(Queue<int,8>* queue) { printf("LEDStart executed.\r\n"); LEDDriver driver = LEDDriver(queue); driver.run(8); -} +} */ int main (void){ printf("main executed.\r\n"); Queue<int,8> queue; - Thread threadeth; + //Thread threadeth; //Thread driverThread; - Ticker ticker; - ticker.attach(this,&LEDDriver::sendData,0.000000625f); + + //(true){ + //threadeth.start(receive,&queue); + //driverThread.start(LEDStart,&queue); + //} - while(true){ - threadeth.start(receive,&queue); - //driverThread.start(LEDStart,&queue); - } + 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); }