From 854f60be2bcc8b68f6f96fe55851e46466a0a42e Mon Sep 17 00:00:00 2001 From: Sadek Baroudi Date: Tue, 15 Jun 2021 14:18:07 -0700 Subject: [PATCH] draculad updates and fixes --- bin/build-draculad.sh | 6 ++++++ keyboards/draculad/keymaps/sadekbaroudi/config.h | 3 +++ keyboards/draculad/keymaps/sadekbaroudi/keymap.c | 2 ++ keyboards/draculad/keymaps/sadekbaroudi/rules.mk | 2 +- keyboards/draculad/rules.mk | 8 ++++---- 5 files changed, 16 insertions(+), 5 deletions(-) create mode 100755 bin/build-draculad.sh create mode 100644 keyboards/draculad/keymaps/sadekbaroudi/config.h diff --git a/bin/build-draculad.sh b/bin/build-draculad.sh new file mode 100755 index 0000000000..60acfd76d4 --- /dev/null +++ b/bin/build-draculad.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +# TODO: consolidate all the build files into one + +make draculad:sadekbaroudi ; +cp .build/draculad_sadekbaroudi* /mnt/c/Users/sadek/Google\ Drive/qmk-keyboards/draculad/ ; diff --git a/keyboards/draculad/keymaps/sadekbaroudi/config.h b/keyboards/draculad/keymaps/sadekbaroudi/config.h new file mode 100644 index 0000000000..a1ff98e8c6 --- /dev/null +++ b/keyboards/draculad/keymaps/sadekbaroudi/config.h @@ -0,0 +1,3 @@ +// See rgb_stuff.c for how these are applied - I wanted to flip these for my red themed keycaps +#define BASE_LAYER_RGB_HUE 0 +#define CAPS_LOCK_RGB_HUE 167 \ No newline at end of file diff --git a/keyboards/draculad/keymaps/sadekbaroudi/keymap.c b/keyboards/draculad/keymaps/sadekbaroudi/keymap.c index b01c7a8764..1e4a270894 100644 --- a/keyboards/draculad/keymaps/sadekbaroudi/keymap.c +++ b/keyboards/draculad/keymaps/sadekbaroudi/keymap.c @@ -192,8 +192,10 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) { static void render_status(void) { oled_write_P(PSTR("This is\n~~~~~~~~~\nDracu\nLad\n~~~~~~~~~\nv1.0\n~~~~~~~~~\n"), false); + #ifdef WPM_ENABLE sprintf(wpm_as_str, "WPM %03d", get_current_wpm()); oled_write(wpm_as_str,false); + #endif led_t led_state = host_keyboard_led_state(); oled_write_P(PSTR("\nCaps: "), false); oled_write_P(led_state.caps_lock ? PSTR("on ") : PSTR("off"), false); diff --git a/keyboards/draculad/keymaps/sadekbaroudi/rules.mk b/keyboards/draculad/keymaps/sadekbaroudi/rules.mk index ca7d373c5c..35591533cc 100644 --- a/keyboards/draculad/keymaps/sadekbaroudi/rules.mk +++ b/keyboards/draculad/keymaps/sadekbaroudi/rules.mk @@ -1 +1 @@ -MOUSEKEY_ENABLE = no \ No newline at end of file +MOUSEKEY_ENABLE = yes \ No newline at end of file diff --git a/keyboards/draculad/rules.mk b/keyboards/draculad/rules.mk index 6eaa428736..00b6eb520c 100644 --- a/keyboards/draculad/rules.mk +++ b/keyboards/draculad/rules.mk @@ -1,7 +1,6 @@ # MCU name MCU = atmega32u4 - EXTRAFLAGS += -flto # Bootloader selection BOOTLOADER = caterina @@ -9,7 +8,7 @@ BOOTLOADER = caterina # Build Options # change yes to no to disable # -MOUSEKEY_ENABLE = yes # Mouse keys +BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration EXTRAKEY_ENABLE = yes # Audio control and System control CONSOLE_ENABLE = no # Console for debug COMMAND_ENABLE = no # Commands for debug and configuration @@ -20,9 +19,10 @@ BLUETOOTH_ENABLE = no # Enable Bluetooth AUDIO_ENABLE = no # Audio output SPLIT_KEYBOARD = yes # Use shared split_common code -OLED_DRIVER_ENABLE = yes -WPM_ENABLE = yes +OLED_DRIVER_ENABLE = no +WPM_ENABLE = no ENCODER_ENABLE = yes RGBLIGHT_ENABLE = yes OLED_DRIVER_ENABLE = yes +RGBLIGHT_ENABLE = yes