|
|
@ -18,6 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#include "musical_notes.h"
|
|
|
|
#include "musical_notes.h"
|
|
|
|
|
|
|
|
#include "stdbool.h"
|
|
|
|
|
|
|
|
|
|
|
|
__attribute__ ((weak))
|
|
|
|
__attribute__ ((weak))
|
|
|
|
float fauxclicky_pressed_note[2];
|
|
|
|
float fauxclicky_pressed_note[2];
|
|
|
@ -26,6 +27,8 @@ float fauxclicky_released_note[2];
|
|
|
|
__attribute__ ((weak))
|
|
|
|
__attribute__ ((weak))
|
|
|
|
float fauxclicky_beep_note[2];
|
|
|
|
float fauxclicky_beep_note[2];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool fauxclicky_enabled;
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// tempo in BPM
|
|
|
|
// tempo in BPM
|
|
|
|
//
|
|
|
|
//
|
|
|
@ -52,6 +55,15 @@ float fauxclicky_beep_note[2];
|
|
|
|
fauxclicky_stop(); \
|
|
|
|
fauxclicky_stop(); \
|
|
|
|
} while (0)
|
|
|
|
} while (0)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// toggle
|
|
|
|
|
|
|
|
#define FAUXCLICKY_TOGGLE do { \
|
|
|
|
|
|
|
|
if (fauxclicky_enabled) { \
|
|
|
|
|
|
|
|
FAUXCLICKY_OFF; \
|
|
|
|
|
|
|
|
} else { \
|
|
|
|
|
|
|
|
FAUXCLICKY_ON; \
|
|
|
|
|
|
|
|
} \
|
|
|
|
|
|
|
|
} while (0)
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// pin configuration
|
|
|
|
// pin configuration
|
|
|
|
//
|
|
|
|
//
|
|
|
|