Frederic DUFOURG / Mbed 2 deprecated Ticker_and_PWM

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

main.cpp File Reference

main.cpp File Reference

main file. More...

Go to the source code of this file.

Functions

void offEnd (void)
 Function called at end of offEnd timeout, sets new timeout defined by led1 state offEnd calls onEnd which calls offEnd making an oscillator.
void toggleLed1 (void)
 Function to toggle led1 evry time the button is pushed this function is called and led1 state toggled.
void onEnd (void)
 Function called at end of onEnd timeout, sets new timeout defined by led1 state onEnd calls offEnd which calls onEnd making an oscillator.
void rampPWM (void)
 Function to manage PWM for orange LED at each new tick rampPWM is called changing PWM value ramping up and down the LED.
int main (void)
 main function sets system up by initializing LEDs state attaching interrupt launching ticker and timeout then enters an infinite while(1) loop

Detailed Description

main file.

Definition in file main.cpp.