1
0
Fork 0

[Keymap] stanrc85 Keymap/userspace updates (#11349)

* keymap updates

* adding fanfare back
This commit is contained in:
stanrc85 2021-01-11 02:03:12 -05:00 committed by GitHub
parent 4c48518a4e
commit 4ae5c3a905
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 13 deletions

View file

@ -20,7 +20,7 @@ ifeq ($(strip $(KEYBOARD)), projectkb/alice/rev2)
endif
ifeq ($(strip $(KEYBOARD)), sneakbox/aliceclone)
SRC += indicator_layers_sneakbox.c
#SRC += startup_fanfare.c
SRC += startup_fanfare.c
OPT_DEFS += -DHAS_INDICATORS
OPT_DEFS += -DHAS_ROTARY
VIA_ENABLE = yes

View file

@ -16,24 +16,24 @@ void matrix_scan_user(void) {
counter++;
if (counter == 1) {
top = 1;
writePin(INDICATOR_PIN_0, !top);
wait_ms(200);
writePin(INDICATOR_PIN_0, top);
wait_ms(300);
top = 0;
writePin(INDICATOR_PIN_0, !top);
writePin(INDICATOR_PIN_0, top);
}
if (counter == 2) {
middle = 1;
writePin(INDICATOR_PIN_1, !middle);
wait_ms(200);
writePin(INDICATOR_PIN_1, middle);
wait_ms(300);
middle = 0;
writePin(INDICATOR_PIN_1, !middle);
writePin(INDICATOR_PIN_1, middle);
}
if (counter == 3) {
bottom = 1;
writePin(INDICATOR_PIN_2, !bottom);
wait_ms(200);
writePin(INDICATOR_PIN_2, bottom);
wait_ms(300);
bottom = 0;
writePin(INDICATOR_PIN_2, !bottom);
writePin(INDICATOR_PIN_2, bottom);
}
if (counter == 4) {
is_enabled = is_rgblight_startup = false;