ducky: enable DIP_SWITCH_ENABLE rule

This commit is contained in:
Reza Jelveh 2020-12-04 19:32:37 +08:00
parent bb31ec6b80
commit 82ea4e2fe1
2 changed files with 3 additions and 0 deletions

View File

@ -85,6 +85,8 @@ inline uint8_t matrix_rows(void) { return MATRIX_ROWS; }
inline uint8_t matrix_cols(void) { return MATRIX_COLS; }
__attribute__((weak)) bool peek_matrix(uint8_t row_index, uint8_t col_index, bool raw) { return 0 != ((raw ? raw_matrix[row_index] : matrix[row_index]) & (MATRIX_ROW_SHIFTER << col_index)); }
void matrix_init(void) {
unselect_rows();
init_cols();

View File

@ -42,6 +42,7 @@ BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
BLUETOOTH_ENABLE = no # Enable Bluetooth
AUDIO_ENABLE = no # Audio output
DIP_SWITCH_ENABLE = yes
CUSTOM_MATRIX = yes # Custom keyscan matrix (don't force inputs)
# Enter lower-power sleep mode when on the ChibiOS idle thread