Use user LED: light when not typing...

also enabling boot magic and RALT
This commit is contained in:
Thomas Haukland 2022-04-16 23:16:30 +02:00
parent 79b1e1e23b
commit 699bfcc533
4 changed files with 28 additions and 8 deletions

View File

@ -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

View File

@ -2,7 +2,7 @@
"version": 1,
"notes": "My awesome keymap",
"documentation": "\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\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",

View File

@ -1,4 +1,4 @@
BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
SPLIT_KEYBOARD = yes
SERIAL_DRIVER = bitbang

View File

@ -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();
}