![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
First version
Dependencies: mbed EthernetInterface mbed-rto
Diff: LEDDriver.cpp
- Revision:
- 50:dfcd7bd87114
- Parent:
- 48:c5cd73d93045
--- a/LEDDriver.cpp Wed May 09 11:56:55 2018 +0000 +++ b/LEDDriver.cpp Wed May 09 12:10:54 2018 +0000 @@ -1,6 +1,6 @@ #include "LEDDriver.h" //Serial pc(USBTX,USBRX); -LEDDriver::LEDDriver( Queue<int,8>* queue) +LEDDriver::LEDDriver( Queue<int,8>* queue):led2(LED2) { //this->messageList=messageList; //this->leds=leds; @@ -40,12 +40,13 @@ void LEDDriver::run(Ticker* ticker) { printf("ticker attached.\r\n"); - ticker->attach(this,&LEDDriver::drive8leds,10.0);//TODO faster + ticker->attach(this,&LEDDriver::drive8leds,1);//TODO faster } void LEDDriver::drive8leds(){ - printf("tick\r\n");//TODO - drive(8); + //printf("tick\r\n");//TODO + led2 = !led2; + //drive(8); } void LEDDriver::ownWait(uint32_t us)