@@ -62,6 +62,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define OLED_DISPLAY_128X64
#define OLED_FONT_END 255
#define OLED_FONT_H "gfxfont.c"
-
-/* QMK DFU */
-#define QMK_LED B0
@@ -8,6 +8,9 @@
"pid": "0x1337",
"device_version": "0.0.1"
},
+ "qmk_lufa_bootloader": {
+ "led": "B0"
+ },
"processor": "atmega32u4",
"bootloader": "qmk-dfu",
"matrix_pins": {
@@ -8,9 +8,6 @@
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
-#define QMK_ESC_OUTPUT C4 // usually COL
-#define QMK_ESC_INPUT C2 // usually ROW
#define RGB_DI_PIN D3
#define RGBLED_NUM 12
@@ -8,6 +8,10 @@
"pid": "0x0001",
+ "esc_input": "C2",
+ "esc_output": "C4"
"processor": "atmega32u2",
"bootloader": "atmel-dfu",
"layouts": {
@@ -25,9 +25,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
-#define QMK_ESC_OUTPUT A3 // usually COL
-#define QMK_ESC_INPUT B14 // usually ROW
#define WS2812_EXTERNAL_PULLUP
#define RGB_DI_PIN A8
@@ -23,6 +23,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
-#define QMK_ESC_INPUT D0 // usually ROW
"pid": "0x0004",
+ "esc_input": "D0",
"pid": "0x0002",
@@ -24,6 +24,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
-#define QMK_ESC_OUTPUT D3 // usually COL
-#define QMK_ESC_INPUT D4 // usually ROW
"pid": "0x0003",
+ "esc_input": "D4",
+ "esc_output": "D3"
-#define QMK_ESC_OUTPUT C2 // usually COL
-#define QMK_ESC_INPUT C4 // usually ROW
#define RGBLED_NUM 1
"pid": "0x0005",
"device_version": "0.0.2"
+ "esc_input": "C4",
+ "esc_output": "C2"
"pid": "0x0008",
"device_version": "0.0.3"
-#define QMK_ESC_OUTPUT B2 // usually COL
@@ -24,9 +24,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
-#define QMK_ESC_OUTPUT C6 // usually COL
#define RGB_DI_PIN D7
#define RGBLED_NUM 2
"pid": "0x0006",
+ "esc_output": "C6"
-#define QMK_ESC_INPUT B13 // usually ROW
@@ -19,7 +19,7 @@
#define MATRIX_COL_PINS { C6, B6, B5, B4, D7, D6, F0, F1, F4, F5, F6, F7 }
#define MATRIX_ROW_PINS { C7, D5, D3, D2 }
-#define QMK_LED E6
+#define ADM42_LED E6
#define RGB_DI_PIN B7
@@ -174,7 +174,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
case REFLASH:
eeconfig_init();
eeconfig_update_rgb_matrix_default();
- writePinLow(QMK_LED);
+ writePinLow(ADM42_LED);
reset_keyboard();
return false;
@@ -184,21 +184,21 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
}
void keyboard_pre_init_kb(void) {
- setPinOutput(QMK_LED);
- writePinHigh(QMK_LED);
+ setPinOutput(ADM42_LED);
+ writePinHigh(ADM42_LED);
void keyboard_post_init_kb(void) {
debug_enable = true;
debug_matrix = false;
debug_keyboard = false;
void suspend_power_down_kb(void) {
void suspend_wakeup_init_kb(void) {
@@ -45,6 +45,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define RGBLIGHT_EFFECT_ALTERNATING
#define RGBLIGHT_EFFECT_TWINKLE
#define RGBLED_NUM 9
-#define QMK_ESC_OUTPUT D0 // usually COL
"pid": "0x9038",
+ "esc_output": "D0"
"community_layouts": ["65_ansi", "65_ansi_split_bs", "65_ansi_blocker", "65_ansi_blocker_split_bs", "65_iso", "65_iso_blocker", "65_iso_blocker_split_bs"],
@@ -25,6 +25,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
-#define QMK_ESC_OUTPUT B3 // usually COL
-#define QMK_ESC_INPUT F0 // usually ROW
@@ -54,6 +54,3 @@
//#define NO_ACTION_LAYER
//#define NO_ACTION_TAPPING
//#define NO_ACTION_ONESHOT
-#define QMK_ESC_OUTPUT F0 // usually COL
-#define QMK_ESC_INPUT B7 // usually ROW
"pid": "0x0187",
+ "esc_input": "B7",
+ "esc_output": "F0"
@@ -40,7 +40,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define RGB_DI_PIN D0 // The pin the LED strip is connected to
#define RGBLED_NUM 1 // Number of LEDs in your strip
-#define QMK_ESC_OUTPUT D7 // usually COL
-#define QMK_LED B6
@@ -8,6 +8,11 @@
"pid": "0x8E66",
+ "esc_output": "D7",
+ "led": "B6"
"indicators": {
"caps_lock": "F5"
#define RGBLIGHT_EFFECT_RGB_TEST
-#define QMK_ESC_OUTPUT B7 // usually COL
-#define QMK_ESC_INPUT B0 // usually ROW
"pid": "0x0E6D",
+ "esc_input": "B0",
+ "esc_output": "B7",
+ "led": "E6"
"caps_lock": "E6",
"on_state": 0
@@ -28,10 +28,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
-/* Backlight configuration
- */
-#define QMK_ESC_INPUT C6 // usually ROW
-#define QMK_LED D1
"pid": "0x8446",
+ "esc_input": "C6",
+ "esc_output": "C4",
+ "led": "D1"
"caps_lock": "D1",
@@ -56,6 +56,3 @@
"pid": "0x0140",
"community_layouts": ["ortho_4x12", "planck_mit"],
@@ -53,7 +53,3 @@
-#define QMK_ESC_INPUT B1 // usually ROW
-#define QMK_LED C7
"pid": "0x0145",
+ "esc_input": "B1",
+ "esc_output": "C6",
+ "led": "C7"
"caps_lock": "C7",
@@ -33,11 +33,6 @@
/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION ROW2COL
-// For QMK DFU
-#define QMK_ESC_OUTPUT C6
-#define QMK_ESC_INPUT D1
-#define QMK_LED B1
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
"pid": "0x5160",
+ "esc_input": "D1",
+ "led": "B1"
"caps_lock": "B1",
"num_lock": "B2",
@@ -54,7 +54,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
-#define QMK_ESC_OUTPUT D6 // usually COL
-#define QMK_LED D0
"pid": "0x1F02",
+ "esc_output": "D6",
+ "led": "D0"
"caps_lock": "D0"
-#define QMK_ESC_OUTPUT D2 // usually COL
-#define QMK_ESC_INPUT B4 // usually ROW
"pid": "0x0160",
+ "esc_input": "B4",
+ "esc_output": "D2"
"community_layouts": ["60_ansi", "60_ansi_split_bs_rshift", "60_hhkb", "60_iso", "60_tsangan_hhkb"],
@@ -51,7 +51,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define RGBLED_NUM 8
"pid": "0x7465",
+ "esc_output": "D2",
"community_layouts": ["65_ansi", "65_iso"],
@@ -38,11 +38,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define SN74X138_ADDRESS_PINS { D2, D1, D0 }
#define SN74X138_E3_PIN D4
-#define QMK_ESC_OUTPUT E6
-#define QMK_ESC_INPUT F0
#define BACKLIGHT_PIN B7
#define BACKLIGHT_BREATHING
#define BACKLIGHT_LEVELS 5
"pid": "0xB00E",
+ "esc_input": "F0",
+ "esc_output": "E6",
"num_lock": "B3",
@@ -41,7 +41,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
"pid": "0xA71C",
+ "esc_output": "F0",
"caps_lock": "B2",
"num_lock": "B1",
@@ -26,9 +26,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
-#define QMK_ESC_INPUT D5 // usually ROW
#define RGB_DI_PIN D1
#define RGBLIGHT_EFFECT_BREATHING
+ "esc_input": "D5",
+ "esc_output": "B7"
-#define QMK_ESC_OUTPUT E6 // usually COL
"pid": "0x6135",
+ "esc_output": "E6"
"pid": "0x5342",
@@ -20,7 +20,5 @@
#define MATRIX_ROW_PINS { B5, B15, B9, B10, A14 }
#define MATRIX_COL_PINS { A2, B8, B13, B14, B4, B11, B12, A13, A15, A8, A7, A6, B0, B1 }
-#define QMK_SPEAKER A5
#define ENCODERS_PAD_A { A1, B3 }
#define ENCODERS_PAD_B { A0, B2 }
@@ -9,7 +9,6 @@
#define JOTPAD16_LEDS
#define JOTPAD16_LED1 B5
#define JOTPAD16_LED2 B4
-#define QMK_LED B5
@@ -86,6 +86,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define LOCKING_RESYNC_ENABLE
-#define QMK_ESC_INPUT C7 // usually ROW
"pid": "0x75B4",
+ "esc_input": "C7",
@@ -20,11 +20,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_ROW_PINS { B5, B6, B4, B2, E6 }
#define MATRIX_COL_PINS { C6, D4, D0, D1, D2, D3, F4, F5, F6, F7, B1, B3}
-#define QMK_ESC_INPUT B4
-// #define QMK_SPEAKER C6
"pid": "0x4260",
"community_layouts": ["ortho_5x12"],
@@ -31,11 +31,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_ROW_PINS { B0, B1, B2, B3, F7 }
#define MATRIX_COL_PINS { F1, F4, F5, E6, F0, B7, D2, D3, D5, D4, D6, D7, B4, B5 }
-/* bootloader configuration */
-#define QMK_ESC_OUTPUT B5 // usually COL
-#define QMK_ESC_INPUT B2 // usually ROW
"pid": "0x0257",
+ "esc_input": "B2",
+ "esc_output": "B5"
"community_layouts": ["60_ansi", "60_iso"],
#define MATRIX_ROW_PINS { F4, F5, B1, B3, D1, D0, D7, E6 }
#define MATRIX_COL_PINS { D3, D2, B4, F6, F7, B2 }
-#define QMK_ESC_OUTPUT D3
-#define QMK_ESC_INPUT B1
#define PHYSICAL_LEDS_ENABLE
#ifdef BACKLIGHT_ENABLE
@@ -3,6 +3,10 @@
"usb": {
"device_version": "2.1.0"
"bootloader": "qmk-dfu"
@@ -27,9 +27,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
//#define EE_HANDS
#define SPLIT_HAND_PIN E6
#define IOS_DEVICE_ENABLE
"device_version": "2.0.0"
"split": {
"soft_serial_pin": "D1"
@@ -25,11 +25,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
-#define QMK_ESC_OUTPUT F5
-#define QMK_ESC_INPUT F4
-#define QMK_SPEAKER C6
/* Split Defines */
#define SPLIT_HAND_PIN D2
@@ -8,6 +8,12 @@
"pid": "0x1247",
"device_version": "1.0.0"
+ "esc_input": "F4",
+ "esc_output": "F5",
+ "led": "B0",
+ "speaker": "C6"
"soft_serial_pin": "D0"
@@ -21,10 +21,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_ROW_PINS { D2, D3, D5, D7, D6 }
#define MATRIX_COL_PINS { F1, F4, F5, F6, D4, B4 }
#define SPLIT_HAND_PIN F0
-#define QMK_ESC_OUTPUT F1
-#define QMK_ESC_INPUT D2
#define ENCODERS_PAD_A { B5 }
#define ENCODERS_PAD_B { B7 }
@@ -4,6 +4,12 @@
"pid": "0x3256",
"device_version": "3.0.0"
+ "esc_input": "D2",
+ "esc_output": "F1",
@@ -23,10 +23,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_ROW_PINS_RIGHT { B1, B2, D2, F1, F4 }
#define MATRIX_COL_PINS_RIGHT { D4, D7, D3, B7, F0, B3 }
#define SPLIT_HAND_PIN D5
#define ENCODERS_PAD_A { B2 }
#define ENCODERS_PAD_B { B3 }
"pid": "0x4256",
"device_version": "4.0.0"
"pid": "0x5256",
"device_version": "5.0.0"
@@ -54,6 +54,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
"pid": "0x6AAB",
"community_layouts": ["65_ansi", "65_ansi_split_bs", "65_iso"],
@@ -6,11 +6,6 @@
#define MATRIX_COL_PINS {E6, F4, B7, D5, D3, D2, F6, F7, C7, C6, B6, B5, B4, D7, D6, D4}
#define RGBLED_NUM 20 // Number of LEDs
-#define QMK_LED F1
#define BACKLIGHT_LEVELS 8
#define BACKLIGHT_PWM_MAP {8, 16, 40, 55, 70, 128, 200, 255}
@@ -20,10 +20,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
-#define QMK_ESC_OUTPUT D6
-#define QMK_ESC_INPUT F5
-#define QMK_SPEAKER D2
#define RGB_DI_PIN F7
#define FORCE_NKRO
@@ -24,6 +24,3 @@
"device_version": "0.0.4"
@@ -44,6 +44,3 @@
#endif
"community_layouts": ["ortho_4x12"],
@@ -50,7 +50,7 @@
//#define DEBUG_MATRIX_SCAN_RATE
#define DYNAMIC_MACRO_NO_NESTING
+#define MODELM_STATUS_LED E6
#define MODELM_LED1 B5
#define MODELM_LED2 B6
@@ -75,12 +75,12 @@ void sleep_led_toggle(void) {}
void sleep_led_disable(void) {
suspend_active = false;
+ writePinHigh(MODELM_STATUS_LED);
void sleep_led_enable(void) {
suspend_active = true;
+ writePinLow(MODELM_STATUS_LED);
#ifdef KEYBOARD_mschwingen_modelm_led_ws2812
led[0] = black;
led[1] = black;
@@ -101,8 +101,8 @@ void keyboard_pre_init_kb(void) {
writePinLow(MODELM_LED_SCROLLOCK);
writePinLow(MODELM_LED_NUMLOCK);
+ setPinOutput(MODELM_STATUS_LED);
_delay_ms(50);
#ifdef UART_DEBUG
uart_init(115200);
@@ -22,11 +22,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_ROW_PINS { D0, D5, B5, B6 }
#define MATRIX_COL_PINS { F1, F0, B0, C7, F4, F5, F6, F7, D4, D6, B4, D7 }
-#define QMK_ESC_INPUT D5
#define AUDIO_VOICES
#define AUDIO_PIN C6
"pid": "0xAE01",
"device_version": "0.0.5"
+ "led": "E6",
@@ -71,6 +71,3 @@
-#define QMK_ESC_INPUT D2 // usually ROW
"pid": "0x22CF",
#define MATRIX_ROW_PINS { D2, D5, B5, B6, D3 }
-#define QMK_ESC_INPUT B5
@@ -6,6 +6,12 @@
"pid": "0x67F3",
+ "esc_input": "B5",
"community_layouts": ["ortho_5x12"]
-#define QMK_ESC_INPUT D1 // usually ROW
#define RGBLED_NUM 18
#define ENCODERS_PAD_A { B4 }
#define ENCODERS_PAD_B { D7 }
-// #define QMK_ESC_OUTPUT B7
-// #define QMK_ESC_INPUT C6
-// #define QMK_SPEAKER B6
#define AUDIO_PIN B6
#define AUDIO_CLICKY
#define NO_MUSIC_MODE
@@ -63,11 +63,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
-#define QMK_ESC_OUTPUT A0 // usually COL
-#define QMK_ESC_INPUT F4 // usually ROW
-#define QMK_LED D2 // NumLock on M0lly
-//#define QMK_SPEAKER C6
/*
* Feature disable options
* These options are also useful to firmware size reduction.
+ "esc_output": "A0",
+ "led": "D2"
"caps_lock": "D3",
"num_lock": "D2",
@@ -55,11 +55,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
-#define QMK_LED D2 // NumLock on TKC1800