mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-22 03:19:24 +00:00
In-tree migration validation.
This commit is contained in:
parent
f92d6ec070
commit
21d01dc75d
8
keyboards/handwired/onekey/keymaps/console/keymap.json
Normal file
8
keyboards/handwired/onekey/keymaps/console/keymap.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"config": {
|
||||
"features": {
|
||||
"console": true,
|
||||
"debug_matrix_scan_rate": true
|
||||
}
|
||||
}
|
||||
}
|
@ -1,2 +0,0 @@
|
||||
CONSOLE_ENABLE = yes
|
||||
DEBUG_MATRIX_SCAN_RATE_ENABLE = yes
|
@ -35,9 +35,7 @@ __ENCODER_MAP_GOES_HERE__
|
||||
__MACRO_OUTPUT_GOES_HERE__
|
||||
|
||||
#ifdef OTHER_KEYMAP_C
|
||||
# if __has_include_next(OTHER_KEYMAP_C)
|
||||
# include_next OTHER_KEYMAP_C
|
||||
# endif // __has_include_next(OTHER_KEYMAP_C)
|
||||
# include OTHER_KEYMAP_C
|
||||
#endif // OTHER_KEYMAP_C
|
||||
"""
|
||||
|
||||
@ -55,7 +53,10 @@ def _generate_keymap_table(keymap_json):
|
||||
|
||||
|
||||
def _generate_encodermap_table(keymap_json):
|
||||
lines = ['#if defined(ENCODER_ENABLE) && defined(ENCODER_MAP_ENABLE)', 'const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {']
|
||||
lines = [
|
||||
'#if defined(ENCODER_ENABLE) && defined(ENCODER_MAP_ENABLE)',
|
||||
'const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {',
|
||||
]
|
||||
for layer_num, layer in enumerate(keymap_json['encoders']):
|
||||
if layer_num != 0:
|
||||
lines[-1] = lines[-1] + ','
|
||||
|
@ -163,9 +163,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
|
||||
#ifdef OTHER_KEYMAP_C
|
||||
# if __has_include_next(OTHER_KEYMAP_C)
|
||||
# include_next OTHER_KEYMAP_C
|
||||
# endif // __has_include_next(OTHER_KEYMAP_C)
|
||||
# include OTHER_KEYMAP_C
|
||||
#endif // OTHER_KEYMAP_C
|
||||
|
||||
|
||||
@ -202,9 +200,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
|
||||
#ifdef OTHER_KEYMAP_C
|
||||
# if __has_include_next(OTHER_KEYMAP_C)
|
||||
# include_next OTHER_KEYMAP_C
|
||||
# endif // __has_include_next(OTHER_KEYMAP_C)
|
||||
# include OTHER_KEYMAP_C
|
||||
#endif // OTHER_KEYMAP_C
|
||||
|
||||
|
||||
|
@ -28,9 +28,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
|
||||
#ifdef OTHER_KEYMAP_C
|
||||
# if __has_include_next(OTHER_KEYMAP_C)
|
||||
# include_next OTHER_KEYMAP_C
|
||||
# endif // __has_include_next(OTHER_KEYMAP_C)
|
||||
# include OTHER_KEYMAP_C
|
||||
#endif // OTHER_KEYMAP_C
|
||||
"""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user