Fixed plank keymaps so that they will compile for planck light
This commit is contained in:
committed by
Jack Humbert
parent
2dacf25f28
commit
4464d90f4d
@@ -3,8 +3,10 @@
|
||||
|
||||
#include "config_common.h"
|
||||
|
||||
#ifndef LIGHT_CONFIG_H
|
||||
#define BACKLIGHT_BREATHING
|
||||
#define BREATHING_PERIOD 3
|
||||
#endif
|
||||
|
||||
#ifdef AUDIO_ENABLE
|
||||
#define STARTUP_SONG SONG(PLANCK_SOUND)
|
||||
|
@@ -126,14 +126,16 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
breathing_self_disable();
|
||||
#ifdef BACKLIGHT_BREATHING
|
||||
breathing_self_disable();
|
||||
#endif
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case DATA:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DATA);
|
||||
#ifdef BACKLIGHT_ENABLE
|
||||
#ifdef BACKLIGHT_BREATHING
|
||||
breathing_enable();
|
||||
#endif
|
||||
}
|
||||
@@ -144,7 +146,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
layer_on(_LOWER);
|
||||
uint8_t default_layer = biton32(default_layer_state);
|
||||
if (default_layer == _QWERTY) {
|
||||
#ifdef BACKLIGHT_ENABLE
|
||||
#ifdef BACKLIGHT_BREATHING
|
||||
breathing_enable();
|
||||
#endif
|
||||
}
|
||||
@@ -153,7 +155,9 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
layer_off(_LOWER);
|
||||
uint8_t default_layer = biton32(default_layer_state);
|
||||
if (default_layer == _QWERTY) {
|
||||
breathing_self_disable();
|
||||
#ifdef BACKLIGHT_BREATHING
|
||||
breathing_self_disable();
|
||||
#endif
|
||||
}
|
||||
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
||||
}
|
||||
@@ -164,7 +168,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
layer_on(_RAISE);
|
||||
uint8_t default_layer = biton32(default_layer_state);
|
||||
if (default_layer == _QWERTY) {
|
||||
#ifdef BACKLIGHT_ENABLE
|
||||
#ifdef BACKLIGHT_BREATHING
|
||||
breathing_enable();
|
||||
#endif
|
||||
}
|
||||
@@ -173,7 +177,9 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
layer_off(_RAISE);
|
||||
uint8_t default_layer = biton32(default_layer_state);
|
||||
if (default_layer == _QWERTY) {
|
||||
breathing_self_disable();
|
||||
#ifdef BACKLIGHT_BREATHING
|
||||
breathing_self_disable();
|
||||
#endif
|
||||
}
|
||||
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
||||
}
|
||||
@@ -182,7 +188,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
case BACKLIT:
|
||||
if (record->event.pressed) {
|
||||
register_code(KC_RSFT);
|
||||
#ifdef BACKLIGHT_ENABLE
|
||||
#ifdef BACKLIGHT_BREATHING
|
||||
backlight_step();
|
||||
#endif
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user