![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
First version
Dependencies: mbed EthernetInterface mbed-rto
main.cpp
- Committer:
- KlaasGovaerts
- Date:
- 2018-05-02
- Revision:
- 42:bb1d9d8a9fe4
- Parent:
- 41:b69c7baa5d31
- Child:
- 44:ffac07bff0d8
File content as of revision 42:bb1d9d8a9fe4:
#include "mbed.h" #include "rtos.h" #include "Interpreter.h" #include "TCPlistener.h" #include "Receiver.h" #include "LEDDriver.h" void receive(Queue<int,8>* queue){ printf("receive executed.\r\n"); Receiver receiver(queue); 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 driverThread; Ticker ticker; ticker.attach(this,&LEDDriver::sendData,0.000000625f); while(true){ threadeth.start(receive,&queue); //driverThread.start(LEDStart,&queue); } }