1
0
Fork 0

Allow codegen of keymap.json => keymap.c without requiring layers/layout etc. (#23451)

This commit is contained in:
Nick Brassel 2024-11-24 20:32:30 +11:00 committed by GitHub
parent 859dab864a
commit 7d8f193988
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 105 additions and 120 deletions

View file

@ -20,17 +20,16 @@ def test_generate_c_pytest_basic():
* This file was generated by qmk json2c. You may or may not want to
* edit it directly.
*/
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(KC_A)
};
#if defined(ENCODER_ENABLE) && defined(ENCODER_MAP_ENABLE)
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
};
#endif // defined(ENCODER_ENABLE) && defined(ENCODER_MAP_ENABLE)
#ifdef OTHER_KEYMAP_C
# include OTHER_KEYMAP_C
#endif // OTHER_KEYMAP_C
"""