diff options
-rw-r--r-- | keyboards/v60_type_r/config.h | 8 | ||||
-rw-r--r-- | keyboards/v60_type_r/rules.mk | 9 | ||||
-rw-r--r-- | keyboards/v60_type_r/v60_type_r.c | 10 | ||||
-rw-r--r-- | keyboards/v60_type_r/v60_type_r.h | 2 |
4 files changed, 13 insertions, 16 deletions
diff --git a/keyboards/v60_type_r/config.h b/keyboards/v60_type_r/config.h index 51ca6def9..d1a788a85 100644 --- a/keyboards/v60_type_r/config.h +++ b/keyboards/v60_type_r/config.h | |||
@@ -53,14 +53,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
53 | #define BACKLIGHT_LEVELS 3 | 53 | #define BACKLIGHT_LEVELS 3 |
54 | #define BACKLIGHT_ON_STATE 0 | 54 | #define BACKLIGHT_ON_STATE 0 |
55 | 55 | ||
56 | #define RGBLIGHT_CUSTOM_DRIVER | 56 | //#define RGB_DI_PIN 0 |
57 | #define RGBLIGHT_ANIMATIONS | ||
58 | #define RGBLED_NUM 1 | 57 | #define RGBLED_NUM 1 |
58 | #define RGBLIGHT_ANIMATIONS | ||
59 | #define RGB_STEP 16 | ||
60 | |||
59 | #define RGB_RED_PIN PF6 | 61 | #define RGB_RED_PIN PF6 |
60 | #define RGB_GREEN_PIN PF5 | 62 | #define RGB_GREEN_PIN PF5 |
61 | #define RGB_BLUE_PIN PF4 | 63 | #define RGB_BLUE_PIN PF4 |
62 | #define RGB_DI_PIN 0 | ||
63 | #define RGB_STEP 16 | ||
64 | 64 | ||
65 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 65 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
66 | #define DEBOUNCE 5 | 66 | #define DEBOUNCE 5 |
diff --git a/keyboards/v60_type_r/rules.mk b/keyboards/v60_type_r/rules.mk index 7533dff3d..37acd03d1 100644 --- a/keyboards/v60_type_r/rules.mk +++ b/keyboards/v60_type_r/rules.mk | |||
@@ -17,18 +17,21 @@ BOOTLOADER = atmel-dfu | |||
17 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | 17 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) |
18 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | 18 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) |
19 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | 19 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) |
20 | CONSOLE_ENABLE = yes # Console for debug(+400) | 20 | CONSOLE_ENABLE = no # Console for debug(+400) |
21 | COMMAND_ENABLE = yes # Commands for debug and configuration | 21 | COMMAND_ENABLE = yes # Commands for debug and configuration |
22 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | 22 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE |
23 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 23 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
24 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 24 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
25 | NKRO_ENABLE = no # USB Nkey Rollover | 25 | NKRO_ENABLE = no # USB Nkey Rollover |
26 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality on B7 by default | 26 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality on B7 by default |
27 | RGBLIGHT_ENABLE = yes # Enable the RGB Underglow | 27 | RGBLIGHT_ENABLE = yes # Enable the RGB Underglow |
28 | RGBLIGHT_CUSTOM_DRIVER = yes | ||
28 | MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) | 29 | MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) |
29 | UNICODE_ENABLE = no # Unicode | 30 | UNICODE_ENABLE = no # Unicode |
30 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | 31 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID |
31 | AUDIO_ENABLE = no # Audio output on port C6 | 32 | AUDIO_ENABLE = no # Audio output on port C6 |
32 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | 33 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches |
33 | 34 | ||
35 | LINK_TIME_OPTIMIZATION_ENABLE = yes | ||
36 | |||
34 | LAYOUTS = 60_ansi 60_iso | 37 | LAYOUTS = 60_ansi 60_iso |
diff --git a/keyboards/v60_type_r/v60_type_r.c b/keyboards/v60_type_r/v60_type_r.c index 5caa149b4..871d9915d 100644 --- a/keyboards/v60_type_r/v60_type_r.c +++ b/keyboards/v60_type_r/v60_type_r.c | |||
@@ -18,13 +18,7 @@ | |||
18 | #include "quantum.h" | 18 | #include "quantum.h" |
19 | 19 | ||
20 | // if we've got an RGB underglow! | 20 | // if we've got an RGB underglow! |
21 | #ifdef V60_POLESTAR | 21 | #ifdef RGBLIGHT_ENABLE |
22 | |||
23 | #include "rgblight.h" | ||
24 | |||
25 | #include <avr/pgmspace.h> | ||
26 | |||
27 | #include "action_layer.h" | ||
28 | 22 | ||
29 | #define SOFTPWM_LED_TIMER_TOP F_CPU/(256*64) | 23 | #define SOFTPWM_LED_TIMER_TOP F_CPU/(256*64) |
30 | 24 | ||
@@ -191,4 +185,4 @@ ISR(TIMER3_COMPA_vect) | |||
191 | softpwm_buff[2] = led[0].b; | 185 | softpwm_buff[2] = led[0].b; |
192 | } | 186 | } |
193 | } | 187 | } |
194 | #endif // V60_POLESTAR | 188 | #endif // RGBLIGHT_ENABLE |
diff --git a/keyboards/v60_type_r/v60_type_r.h b/keyboards/v60_type_r/v60_type_r.h index c33a2840b..78b6561ba 100644 --- a/keyboards/v60_type_r/v60_type_r.h +++ b/keyboards/v60_type_r/v60_type_r.h | |||
@@ -17,7 +17,7 @@ | |||
17 | 17 | ||
18 | #include "quantum.h" | 18 | #include "quantum.h" |
19 | 19 | ||
20 | #ifdef V60_POLESTAR | 20 | #ifdef RGBLIGHT_ENABLE |
21 | 21 | ||
22 | #include "rgblight.h" | 22 | #include "rgblight.h" |
23 | 23 | ||