aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/metamechs
diff options
context:
space:
mode:
authorCroktopus <39040552+Croktopus@users.noreply.github.com>2020-07-30 07:52:54 -0700
committerGitHub <noreply@github.com>2020-07-31 00:52:54 +1000
commit08f31f664a9011aa28f8da3de300db475ce3aba7 (patch)
tree99346896813274eab3bc5a804707886e81320133 /keyboards/metamechs
parent9758bcb28b8d5b7915384844bb8b7c2e3e15c8e0 (diff)
downloadfirmware-08f31f664a9011aa28f8da3de300db475ce3aba7.tar.gz
firmware-08f31f664a9011aa28f8da3de300db475ce3aba7.tar.bz2
firmware-08f31f664a9011aa28f8da3de300db475ce3aba7.zip
Timber Wolf - updated via keymap, reduced eeprom writing from backlight code (#9876)
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/metamechs')
-rw-r--r--keyboards/metamechs/timberwolf/config.h2
-rw-r--r--keyboards/metamechs/timberwolf/keymaps/via/keymap.c10
-rw-r--r--keyboards/metamechs/timberwolf/rules.mk10
-rw-r--r--keyboards/metamechs/timberwolf/timberwolf.c14
4 files changed, 18 insertions, 18 deletions
diff --git a/keyboards/metamechs/timberwolf/config.h b/keyboards/metamechs/timberwolf/config.h
index 8c92e2283..c6e0a8fe3 100644
--- a/keyboards/metamechs/timberwolf/config.h
+++ b/keyboards/metamechs/timberwolf/config.h
@@ -62,7 +62,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* Backlighting code used for caps lock indicator */
#define BACKLIGHT_PIN C6
-#define BACKLIGHT_LEVELS 9
+#define BACKLIGHT_LEVELS 16
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
// #define LOCKING_SUPPORT_ENABLE
diff --git a/keyboards/metamechs/timberwolf/keymaps/via/keymap.c b/keyboards/metamechs/timberwolf/keymaps/via/keymap.c
index 57614bd7a..e19d3bbae 100644
--- a/keyboards/metamechs/timberwolf/keymaps/via/keymap.c
+++ b/keyboards/metamechs/timberwolf/keymaps/via/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,KC_J ,KC_K ,KC_L ,KC_SCLN,KC_QUOT,KC_NUHS,KC_ENT ,KC_DEL ,KC_PENT,
+ KC_F16 ,KC_LSFT,KC_NUBS,KC_Z ,KC_X ,KC_C ,KC_V ,KC_B ,KC_N ,KC_M ,KC_COMM,KC_DOT ,KC_SLSH,KC_RSFT,MO(1) ,KC_UP ,KC_UP ,KC_PENT,
MO(1) ,KC_LCTL,KC_LGUI,KC_LALT ,KC_SPC ,KC_RALT,KC_RGUI,KC_RCTL,KC_LEFT,KC_LEFT,KC_DOWN,KC_RGHT,KC_PENT
),
[1] = LAYOUT_all(
@@ -31,7 +31,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______ ,_______,_______,
_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______ ,_______,_______,
_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,
- MO(1) ,_______,_______,_______ ,_______ ,_______,_______,_______,_______,_______,_______,_______,_______
+ _______,_______,_______,_______ ,_______ ,_______,_______,_______,_______,_______,_______,_______,_______
),
[2] = LAYOUT_all(
_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______ ,_______,_______,_______,
diff --git a/keyboards/metamechs/timberwolf/rules.mk b/keyboards/metamechs/timberwolf/rules.mk
index 240f806a6..d6da31774 100644
--- a/keyboards/metamechs/timberwolf/rules.mk
+++ b/keyboards/metamechs/timberwolf/rules.mk
@@ -25,11 +25,9 @@ SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
NKRO_ENABLE = yes # USB Nkey Rollover
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
-MIDI_ENABLE = no # MIDI support
-BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
-AUDIO_ENABLE = no # Audio output on port C6
-FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
-HD44780_ENABLE = no # Enable support for HD44780 based LCDs
+BLUETOOTH_ENABLE = no # Enable Bluetooth
+AUDIO_ENABLE = no # Audio output
ENCODER_ENABLE = yes # Enable encoder support
+LTO_ENABLE = yes
-BACKLIGHT_DRIVER = pwm \ No newline at end of file
+BACKLIGHT_DRIVER = pwm
diff --git a/keyboards/metamechs/timberwolf/timberwolf.c b/keyboards/metamechs/timberwolf/timberwolf.c
index c3fb24924..c9a750f45 100644
--- a/keyboards/metamechs/timberwolf/timberwolf.c
+++ b/keyboards/metamechs/timberwolf/timberwolf.c
@@ -18,10 +18,12 @@
bool led_update_kb(led_t led_state) {
bool runDefault = led_update_user(led_state);
- if (led_state.caps_lock) {
- backlight_enable();
- } else {
- backlight_disable();
- }
+ if(runDefault) {
+ if (led_state.caps_lock) {
+ backlight_level_noeeprom(get_backlight_level());
+ } else {
+ backlight_set(0);
+ }
+ }
return runDefault;
-} \ No newline at end of file
+}