summaryrefslogtreecommitdiffstats
path: root/keyboards/clueboard/60/matrix.c
diff options
context:
space:
mode:
authorskullydazed <skullydazed@users.noreply.github.com>2018-01-13 20:38:25 -0800
committerJack Humbert <jack.humb@gmail.com>2018-01-13 23:38:25 -0500
commit5836d1a06a7265781fa37acf13e3ba9df7224247 (patch)
treefe4161c2cb1dc28b5eab39c5d97caedc92b7efc8 /keyboards/clueboard/60/matrix.c
parentfd359e23e8b46826f480d1bcf21261c3f777e2f4 (diff)
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
Diffstat (limited to 'keyboards/clueboard/60/matrix.c')
-rw-r--r--keyboards/clueboard/60/matrix.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/keyboards/clueboard/60/matrix.c b/keyboards/clueboard/60/matrix.c
index 4023bc03cf..7c38a3bd45 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;