From 5836d1a06a7265781fa37acf13e3ba9df7224247 Mon Sep 17 00:00:00 2001 From: skullydazed Date: Sat, 13 Jan 2018 20:38:25 -0800 Subject: Fix up the ARM audio support (#2136) * Get audio working on clueboard/60 * add keys for music mode * Change doubles to floats * add keys for all the songs * revert to the default startup sound * Remove music mode until we can figure out why it crashes --- keyboards/clueboard/60/matrix.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'keyboards/clueboard/60/matrix.c') diff --git a/keyboards/clueboard/60/matrix.c b/keyboards/clueboard/60/matrix.c index 4023bc03c..7c38a3bd4 100644 --- a/keyboards/clueboard/60/matrix.c +++ b/keyboards/clueboard/60/matrix.c @@ -71,10 +71,7 @@ void matrix_init(void) { memset(matrix, 0, MATRIX_ROWS * sizeof(matrix_row_t)); memset(matrix_debouncing, 0, MATRIX_COLS * sizeof(matrix_row_t)); - /* Setup capslock */ - // palSetPadMode(GPIOB, 7, PAL_MODE_OUTPUT_PUSHPULL); - // palClearPad(GPIOB, 7); - + palClearPad(GPIOB, 7); // Turn off capslock matrix_init_quantum(); } @@ -138,6 +135,7 @@ uint8_t matrix_scan(void) { debouncing_time = timer_read(); } } + if (debouncing && timer_elapsed(debouncing_time) > DEBOUNCE) { for (int row = 0; row < MATRIX_ROWS; row++) { matrix[row] = 0; -- cgit v1.2.3