Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move QMK LUFA bootloader config to data driven #19879

Merged
merged 2 commits into from
Feb 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions keyboards/0xcb/1337/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions keyboards/0xcb/1337/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"pid": "0x1337",
"device_version": "0.0.1"
},
"qmk_lufa_bootloader": {
"led": "B0"
},
"processor": "atmega32u4",
"bootloader": "qmk-dfu",
"matrix_pins": {
Expand Down
3 changes: 0 additions & 3 deletions keyboards/4pplet/aekiso60/rev_a/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
#define BACKLIGHT_LEVELS 5
Expand Down
4 changes: 4 additions & 0 deletions keyboards/4pplet/aekiso60/rev_a/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"pid": "0x0001",
"device_version": "0.0.1"
},
"qmk_lufa_bootloader": {
"esc_input": "C2",
"esc_output": "C4"
},
"processor": "atmega32u2",
"bootloader": "atmel-dfu",
"layouts": {
Expand Down
3 changes: 0 additions & 3 deletions keyboards/4pplet/aekiso60/rev_b/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW

#define QMK_ESC_OUTPUT A3 // usually COL
#define QMK_ESC_INPUT B14 // usually ROW

#define RGBLED_NUM 12
#define WS2812_EXTERNAL_PULLUP
#define RGB_DI_PIN A8
Expand Down
3 changes: 0 additions & 3 deletions keyboards/4pplet/bootleg/rev_a/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW

#define QMK_ESC_OUTPUT C4 // usually COL
#define QMK_ESC_INPUT D0 // usually ROW
4 changes: 4 additions & 0 deletions keyboards/4pplet/bootleg/rev_a/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"pid": "0x0004",
"device_version": "0.0.1"
},
"qmk_lufa_bootloader": {
"esc_input": "D0",
"esc_output": "C4"
},
"processor": "atmega32u2",
"bootloader": "atmel-dfu",
"layouts": {
Expand Down
3 changes: 0 additions & 3 deletions keyboards/4pplet/steezy60/rev_a/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
#define BACKLIGHT_LEVELS 5
Expand Down
4 changes: 4 additions & 0 deletions keyboards/4pplet/steezy60/rev_a/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"pid": "0x0002",
"device_version": "0.0.1"
},
"qmk_lufa_bootloader": {
"esc_input": "C2",
"esc_output": "C4"
},
"processor": "atmega32u2",
"bootloader": "atmel-dfu",
"layouts": {
Expand Down
3 changes: 0 additions & 3 deletions keyboards/4pplet/waffling60/rev_a/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW

#define QMK_ESC_OUTPUT D3 // usually COL
#define QMK_ESC_INPUT D4 // usually ROW
4 changes: 4 additions & 0 deletions keyboards/4pplet/waffling60/rev_a/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"pid": "0x0003",
"device_version": "0.0.1"
},
"qmk_lufa_bootloader": {
"esc_input": "D4",
"esc_output": "D3"
},
"processor": "atmega32u2",
"bootloader": "atmel-dfu",
"layouts": {
Expand Down
3 changes: 0 additions & 3 deletions keyboards/4pplet/waffling60/rev_b/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW

#define QMK_ESC_OUTPUT C2 // usually COL
#define QMK_ESC_INPUT C4 // usually ROW

#define RGB_DI_PIN D3
#define RGBLED_NUM 1
#define BACKLIGHT_LEVELS 5
Expand Down
4 changes: 4 additions & 0 deletions keyboards/4pplet/waffling60/rev_b/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"pid": "0x0005",
"device_version": "0.0.2"
},
"qmk_lufa_bootloader": {
"esc_input": "C4",
"esc_output": "C2"
},
"processor": "atmega32u2",
"bootloader": "atmel-dfu",
"layouts": {
Expand Down
3 changes: 0 additions & 3 deletions keyboards/4pplet/waffling60/rev_c/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW

#define QMK_ESC_OUTPUT C2 // usually COL
#define QMK_ESC_INPUT C4 // usually ROW

#define RGB_DI_PIN D3
#define RGBLED_NUM 1
#define BACKLIGHT_LEVELS 5
Expand Down
4 changes: 4 additions & 0 deletions keyboards/4pplet/waffling60/rev_c/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"pid": "0x0008",
"device_version": "0.0.3"
},
"qmk_lufa_bootloader": {
"esc_input": "C4",
"esc_output": "C2"
},
"processor": "atmega32u2",
"bootloader": "atmel-dfu",
"layouts": {
Expand Down
3 changes: 0 additions & 3 deletions keyboards/4pplet/waffling60/rev_d/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW

#define QMK_ESC_OUTPUT B2 // usually COL
#define QMK_ESC_INPUT B14 // usually ROW

#define RGBLED_NUM 1
#define WS2812_EXTERNAL_PULLUP
#define RGB_DI_PIN A8
Expand Down
3 changes: 0 additions & 3 deletions keyboards/4pplet/waffling60/rev_d_ansi/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW

#define QMK_ESC_OUTPUT B2 // usually COL
#define QMK_ESC_INPUT B14 // usually ROW
3 changes: 0 additions & 3 deletions keyboards/4pplet/waffling60/rev_d_iso/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW

#define QMK_ESC_OUTPUT B2 // usually COL
#define QMK_ESC_INPUT B14 // usually ROW
3 changes: 0 additions & 3 deletions keyboards/4pplet/waffling80/rev_a/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW

#define QMK_ESC_OUTPUT C6 // usually COL
#define QMK_ESC_INPUT C4 // usually ROW

#define RGB_DI_PIN D7
#define RGBLED_NUM 2

Expand Down
4 changes: 4 additions & 0 deletions keyboards/4pplet/waffling80/rev_a/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"pid": "0x0006",
"device_version": "0.0.1"
},
"qmk_lufa_bootloader": {
"esc_input": "C4",
"esc_output": "C6"
},
"processor": "atmega32u2",
"bootloader": "atmel-dfu",
"layouts": {
Expand Down
3 changes: 0 additions & 3 deletions keyboards/4pplet/waffling80/rev_b/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW

#define QMK_ESC_OUTPUT B2 // usually COL
#define QMK_ESC_INPUT B13 // usually ROW

#define RGBLED_NUM 2
#define WS2812_EXTERNAL_PULLUP
#define RGB_DI_PIN A8
Expand Down
2 changes: 1 addition & 1 deletion keyboards/adm42/rev4/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,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

Expand Down
12 changes: 6 additions & 6 deletions keyboards/adm42/rev4/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
writePinHigh(QMK_LED);
writePinHigh(ADM42_LED);
}

void suspend_power_down_kb(void) {
writePinLow(QMK_LED);
writePinLow(ADM42_LED);
}

void suspend_wakeup_init_kb(void) {
writePinHigh(QMK_LED);
writePinHigh(ADM42_LED);
}
3 changes: 0 additions & 3 deletions keyboards/aves65/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
#define QMK_ESC_INPUT D4 // usually ROW
4 changes: 4 additions & 0 deletions keyboards/aves65/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"pid": "0x9038",
"device_version": "0.0.1"
},
"qmk_lufa_bootloader": {
"esc_input": "D4",
"esc_output": "D0"
},
"processor": "atmega32u4",
"bootloader": "qmk-dfu",
"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"],
Expand Down
3 changes: 0 additions & 3 deletions keyboards/compound/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW

#define QMK_ESC_OUTPUT B3 // usually COL
#define QMK_ESC_INPUT F0 // usually ROW
3 changes: 0 additions & 3 deletions keyboards/e88/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions keyboards/e88/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"pid": "0x0187",
"device_version": "0.0.1"
},
"qmk_lufa_bootloader": {
"esc_input": "B7",
"esc_output": "F0"
},
"processor": "atmega32u4",
"bootloader": "qmk-dfu",
"layouts": {
Expand Down
4 changes: 0 additions & 4 deletions keyboards/evyd13/atom47/rev2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_ESC_INPUT B7 // usually ROW
#define QMK_LED B6
5 changes: 5 additions & 0 deletions keyboards/evyd13/atom47/rev2/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"pid": "0x8E66",
"device_version": "0.0.1"
},
"qmk_lufa_bootloader": {
"esc_input": "B7",
"esc_output": "D7",
"led": "B6"
},
"indicators": {
"caps_lock": "F5"
},
Expand Down
3 changes: 0 additions & 3 deletions keyboards/evyd13/atom47/rev3/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define RGBLIGHT_EFFECT_RGB_TEST
#define RGBLIGHT_EFFECT_ALTERNATING
#define RGBLIGHT_EFFECT_TWINKLE
#define QMK_ESC_OUTPUT B7 // usually COL
#define QMK_ESC_INPUT B0 // usually ROW
#define QMK_LED E6
5 changes: 5 additions & 0 deletions keyboards/evyd13/atom47/rev3/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"pid": "0x0E6D",
"device_version": "0.0.1"
},
"qmk_lufa_bootloader": {
"esc_input": "B0",
"esc_output": "B7",
"led": "E6"
},
"indicators": {
"caps_lock": "E6",
"on_state": 0
Expand Down
7 changes: 0 additions & 7 deletions keyboards/evyd13/atom47/rev4/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW

/* Backlight configuration
*/

#define QMK_ESC_OUTPUT C4 // usually COL
#define QMK_ESC_INPUT C6 // usually ROW
#define QMK_LED D1
5 changes: 5 additions & 0 deletions keyboards/evyd13/atom47/rev4/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"pid": "0x8446",
"device_version": "0.0.1"
},
"qmk_lufa_bootloader": {
"esc_input": "C6",
"esc_output": "C4",
"led": "D1"
},
"indicators": {
"caps_lock": "D1",
"on_state": 0
Expand Down
3 changes: 0 additions & 3 deletions keyboards/evyd13/eon40/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,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
4 changes: 4 additions & 0 deletions keyboards/evyd13/eon40/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"pid": "0x0140",
"device_version": "0.0.1"
},
"qmk_lufa_bootloader": {
"esc_input": "B7",
"esc_output": "F0"
},
"processor": "atmega32u4",
"bootloader": "qmk-dfu",
"community_layouts": ["ortho_4x12", "planck_mit"],
Expand Down
4 changes: 0 additions & 4 deletions keyboards/evyd13/minitomic/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,3 @@
//#define NO_ACTION_LAYER
//#define NO_ACTION_TAPPING
//#define NO_ACTION_ONESHOT

#define QMK_ESC_OUTPUT C6 // usually COL
#define QMK_ESC_INPUT B1 // usually ROW
#define QMK_LED C7
5 changes: 5 additions & 0 deletions keyboards/evyd13/minitomic/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"pid": "0x0145",
"device_version": "0.0.1"
},
"qmk_lufa_bootloader": {
"esc_input": "B1",
"esc_output": "C6",
"led": "C7"
},
"indicators": {
"caps_lock": "C7",
"on_state": 0
Expand Down
Loading