Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
If I run the following code, led 1 blinks at 10Hz.
#include "mbed.h" DigitalOut led1(LED1); void tickerfunction(); int main() { Ticker t; t.attach(&tickerfunction, 0.1); while(1) { wait(1); } } void tickerfunction(){ led1=!led1; }If I change the code (t.attach(&tickerfunction, 1/10)), the led stops blinking.
#include "mbed.h" DigitalOut led1(LED1); void tickerfunction(); int main() { Ticker t; t.attach(&tickerfunction, 1/10); while(1) { wait(1); } } void tickerfunction(){ led1=!led1; }Anything I'm not fully understanding that can cause this?