~ruther/qmk_firmware

ref: ca2d2a524fafacf8585a17f0d7d52494e24d3ce4 qmk_firmware/users/mtei/matrix_output_unselect_delay_ondemand.c -rw-r--r-- 480 bytes
ca2d2a52 — Joel Challis Flag more VIAL config options in lint (#22345) 1 year, 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (c) 2021 Takeshi Ishii (mtei@github)
// SPDX-License-Identifier: GPL-2.0-or-later

#include QMK_KEYBOARD_H

void matrix_output_unselect_delay(uint8_t line, bool key_pressed) {
     /* If none of the keys are pressed,
      *  there is no need to wait for time for the next line. */
     if (key_pressed) {
#    ifdef MATRIX_IO_DELAY
#        if MATRIX_IO_DELAY > 0
         wait_us(MATRIX_IO_DELAY);
#        endif
#    else
         wait_us(30);
#    endif
     }
}
Do not follow this link