Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Test
Main module to test led, button and ticker interaction. More...
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 module to test led, button and ticker interaction.
- Date:
- 23.08.2014
- Note:
- required LEDs on pin D9 and D11 in addition to that on the board
Function Documentation
| int main | ( | void | ) |
| void offEnd | ( | void | ) |
| void onEnd | ( | void | ) |
| void rampPWM | ( | void | ) |
Generated on Wed Jul 13 2022 17:27:46 by
1.7.2