diff options
Diffstat (limited to 'keyboards/crkbd')
-rw-r--r-- | keyboards/crkbd/rev1/matrix.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/keyboards/crkbd/rev1/matrix.c b/keyboards/crkbd/rev1/matrix.c index 9d86879d6c..46dead369f 100644 --- a/keyboards/crkbd/rev1/matrix.c +++ b/keyboards/crkbd/rev1/matrix.c @@ -30,7 +30,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #include "util.h" #include "matrix.h" #include "split_util.h" -#include "pro_micro.h" +#include "quantum.h" #ifdef USE_MATRIX_I2C # include "i2c.h" @@ -96,37 +96,38 @@ uint8_t matrix_cols(void) void tx_rx_leds_init(void) { #ifndef NO_DEBUG_LEDS - TX_RX_LED_INIT; - TXLED0; - RXLED0; + setPinOutput(B0); + setPinOutput(D5); + writePinHigh(B0); + writePinHigh(D5); #endif } void tx_led_on(void) { #ifndef NO_DEBUG_LEDS - TXLED1; + writePinLow(D5); #endif } void tx_led_off(void) { #ifndef NO_DEBUG_LEDS - TXLED0; + writePinHigh(D5); #endif } void rx_led_on(void) { #ifndef NO_DEBUG_LEDS - RXLED1; + writePinLow(B0); #endif } void rx_led_off(void) { #ifndef NO_DEBUG_LEDS - RXLED0; + writePinHigh(B0); #endif } |