From 699bfcc53305bea2b5170f33d6f6a89d8ac0f489 Mon Sep 17 00:00:00 2001 From: Thomas Haukland Date: Sat, 16 Apr 2022 23:16:30 +0200 Subject: [PATCH] Use user LED: light when not typing... also enabling boot magic and RALT --- keyboards/vonreg/config.h | 8 ++++---- keyboards/vonreg/keymaps/tompi/keymap.json | 6 +++--- keyboards/vonreg/rules.mk | 2 +- keyboards/vonreg/vonreg.c | 20 ++++++++++++++++++++ 4 files changed, 28 insertions(+), 8 deletions(-) diff --git a/keyboards/vonreg/config.h b/keyboards/vonreg/config.h index e985437256..b6bf7a3b40 100644 --- a/keyboards/vonreg/config.h +++ b/keyboards/vonreg/config.h @@ -33,10 +33,10 @@ /* Top left key on left half */ -//#define BOOTMAGIC_LITE_ROW 0 -//#define BOOTMAGIC_LITE_COLUMN 0 +#define BOOTMAGIC_LITE_ROW 0 +#define BOOTMAGIC_LITE_COLUMN 0 /* Top right key on right half */ -//#define BOOTMAGIC_LITE_ROW_RIGHT 4 -//#define BOOTMAGIC_LITE_COLUMN_RIGHT 4 +#define BOOTMAGIC_LITE_ROW_RIGHT 4 +#define BOOTMAGIC_LITE_COLUMN_RIGHT 4 #define DEVICE_VER 0x0001 diff --git a/keyboards/vonreg/keymaps/tompi/keymap.json b/keyboards/vonreg/keymaps/tompi/keymap.json index 9fbdcdc6e7..abab1afb38 100644 --- a/keyboards/vonreg/keymaps/tompi/keymap.json +++ b/keyboards/vonreg/keymaps/tompi/keymap.json @@ -2,7 +2,7 @@ "version": 1, "notes": "My awesome keymap", "documentation": "\"This file is a QMK Configurator export. You can import this at . It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: \n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n", - "keyboard": "vonreg", + "keyboard": "bastardkb/skeletyl", "keymap": "default", "layout": "LAYOUT_split_3x5_3", "layers": [ @@ -16,7 +16,7 @@ "KC_L", "KC_U", "KC_Y", - "KC_SCLN", + "RALT_T(KC_SCLN)", "LGUI_T(KC_A)", "LALT_T(KC_R)", "LCTL_T(KC_S)", @@ -27,7 +27,7 @@ "LCTL_T(KC_E)", "LALT_T(KC_I)", "LGUI_T(KC_O)", - "KC_Z", + "RALT_T(KC_Z)", "KC_X", "KC_C", "KC_D", diff --git a/keyboards/vonreg/rules.mk b/keyboards/vonreg/rules.mk index 129d3f1717..87499eed25 100644 --- a/keyboards/vonreg/rules.mk +++ b/keyboards/vonreg/rules.mk @@ -1,4 +1,4 @@ -BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite +BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite SPLIT_KEYBOARD = yes SERIAL_DRIVER = bitbang diff --git a/keyboards/vonreg/vonreg.c b/keyboards/vonreg/vonreg.c index 83256d6c6c..a439df35dc 100644 --- a/keyboards/vonreg/vonreg.c +++ b/keyboards/vonreg/vonreg.c @@ -16,3 +16,23 @@ #include "vonreg.h" +char _down; + +bool process_record_kb(uint16_t keycode, keyrecord_t *record) { + if (record->event.pressed) { + writePinHigh(C13); + _down++; + } else { + _down--; + if (_down == 0) { + writePinLow(C13); + } + } + //process_record_user(keycode, record); + return true; +} + +void keyboard_post_init_kb(void) { + setPinOutput(C13); + //keyboard_post_init_user(); +}