~ruther/qmk_firmware

ref: e4e90fa113fed9f91e6b7ae2e9970ba320f60bb7 qmk_firmware/layouts/community/ortho_3x10/wanleg/config.h -rw-r--r-- 906 bytes
e4e90fa1 — spbgzh [Keyboard] fix json for nemui65 (#21629) 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once

//QMK DFU settings (ProMicro boards)
// set top left key as bootloader mode escape key on Gherkin
#if defined(KEYBOARD_40percentclub_gherkin) && !defined(FLIP) 
#define QMK_LED B0
#define QMK_ESC_OUTPUT B4 // usually COL
#define QMK_ESC_INPUT F7 // usually ROW
#endif

//change gherkin orientation (i.e. move USB port from right side to left side)
#if defined(KEYBOARD_40percentclub_gherkin) && defined(FLIP) 
//need to fix QMKdfu setting:
#define QMK_ESC_OUTPUT B6 // usually COL
#define QMK_ESC_INPUT D0 // usually ROW
#define QMK_LED B0

//need to undefine standard 4x4 array before defining alternate ProMicro array
#undef MATRIX_ROW_PINS
#undef MATRIX_COL_PINS
//standard config:
//#define MATRIX_ROW_PINS { F7, B1, B3, B2, B6 }
//#define MATRIX_COL_PINS { B4, E6, D7, C6, D4, D0 }
#define MATRIX_ROW_PINS { B6, B2, B3, B1, F7 }
#define MATRIX_COL_PINS { D0, D4, C6, D7, E6, B4 }
#endif