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.
Dependencies: FATFileSystem N5110_mod SDFileSystem USBDevice mbed
Variables and functions used to control the tap-tempo. More...
Functions | |
| InterruptIn | tempo_tapIn (PTB9) |
| interrupt for tap tempo button | |
| void | tempo_init () |
| # functions | |
| void | tempo_ISR () |
| interrupt called by tap tempo input | |
| void | tempo_set () |
| tempo set routine | |
| void | tempo_update () |
| Indicates tempo to be updated (used when tempo is set via menu) | |
Variables | |
| Timer | tempo_time |
| # IO & interrupts | |
| volatile int | tempo_flag |
| # flags & variables | |
| int | tempo_timerState |
| indicates how many times tap tempo button has been pressed | |
| float | tempo_debounce = 0 |
| keeps track of button bounces | |
| volatile int | tempo_update_flag = 0 |
| indicates that tempo has been changed | |
Detailed Description
Variables and functions used to control the tap-tempo.
Function Documentation
| void tempo_init | ( | ) |
| void tempo_set | ( | ) |
tempo set routine
First press (timer start)
to prevent false triggers
reset and restart timer
Increment state variable
Second press (count)
to prevent false triggers
Increment state variable
Third press (count)
to prevent false triggers
Increment state variable
Fourth press (Stop timer & set tempo)
to prevent false triggers
Stop timer
update tempo
reset tempo timer
Reset state variable
| InterruptIn tempo_tapIn | ( | PTB9 | ) |
interrupt for tap tempo button
| void tempo_update | ( | ) |
Variable Documentation
| float tempo_debounce = 0 |
| volatile int tempo_flag |
| Timer tempo_time |
| int tempo_timerState |
| volatile int tempo_update_flag = 0 |
Generated on Tue Jul 12 2022 13:31:54 by
1.7.2