]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
[Keyboard] V60 Type R - Turn on leds for Configurator + Refactor (#5546)
authorMechMerlin <30334081+mechmerlin@users.noreply.github.com>
Thu, 4 Apr 2019 01:35:53 +0000 (18:35 -0700)
committerDrashna Jaelre <drashna@live.com>
Thu, 4 Apr 2019 01:35:53 +0000 (18:35 -0700)
* use pragma once where applicable

* remove ?

* update default keymap readme

* remove un need include

* update readme with newbs guide

* set underglow and backlight to be on by default, and explicitly set them to no for the default keymap to handle the non Polestar case.

* put mine and benlyall's name in the code

* update readme

keyboards/v60_type_r/config.h
keyboards/v60_type_r/keymaps/default/config.h
keyboards/v60_type_r/keymaps/default/keymap.c
keyboards/v60_type_r/keymaps/default/readme.md
keyboards/v60_type_r/keymaps/default/rules.mk [new file with mode: 0644]
keyboards/v60_type_r/keymaps/vimouse/config.h
keyboards/v60_type_r/keymaps/vimouse/keymap.c
keyboards/v60_type_r/readme.md
keyboards/v60_type_r/rules.mk
keyboards/v60_type_r/v60_type_r.c
keyboards/v60_type_r/v60_type_r.h

index 703745d56429e9830623bd4ddf32a4b866e6ddf7..e3e00a9f80def8ea9a4b06f50b712983fad29f86 100644 (file)
@@ -1,5 +1,5 @@
 /*
-Copyright 2017 REPLACE_WITH_YOUR_NAME
+Copyright 2017 benlyall, MechMerlin
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -15,8 +15,7 @@ You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-#ifndef CONFIG_H
-#define CONFIG_H
+#pragma once
 
 #include "config_common.h"
 
@@ -190,5 +189,3 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
 //#define MIDI_TONE_KEYCODE_OCTAVES 1
-
-#endif
index 6f235f6ba8439a4470919bb2e6eb290f86230712..744bea207b3b341e1ba716ca62ec066cf335e8e8 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright 2017 REPLACE_WITH_YOUR_NAME
+/* Copyright 2017 benlyall, MechMerlin
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
index 77546c0a6549065c86c3dea2e49334cf8099bdd2..831def0789bd22c1be7c76a84388161e9c6ed2c1 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright 2017 REPLACE_WITH_YOUR_NAME
+/* Copyright 2017 benlyall, MechMerlin
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
index 57ac901ada0b1e87f00ac90f029227b18fedb784..9b3c6f0643305bd974dba7c18cbf2916f1f8e009 100644 (file)
@@ -1,5 +1,4 @@
-KB Paradise V60 Type R Default Layout
-======================
+# KB Paradise V60 Type R Default Layout
 
 This is the default layout as defined by the KBP V60 Type R manual/keycaps
 
@@ -9,4 +8,4 @@ This is the default layout as defined by the KBP V60 Type R manual/keycaps
 
 
 ### Build
-To build this keymap, simply run `make KEYMAP=default`.
\ No newline at end of file
+To build this keymap, simply run `make v60_type_r:default`.
diff --git a/keyboards/v60_type_r/keymaps/default/rules.mk b/keyboards/v60_type_r/keymaps/default/rules.mk
new file mode 100644 (file)
index 0000000..b6c9a25
--- /dev/null
@@ -0,0 +1,2 @@
+BACKLIGHT_ENABLE = no
+RGBLIGHT_ENABLE = no
index 3937420d00db33269138bdfbf2a289ca811092d4..285cb4fa23851d0a439de1a2c4b5b56bc52c6712 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright 2017 REPLACE_WITH_YOUR_NAME
+/* Copyright 2017 benlyall, MechMerlin
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef CONFIG_USER_H
-#define CONFIG_USER_H
-
-#include "../../config.h"
+#pragma once
 
 #define V60_POLESTAR
 
@@ -27,5 +24,3 @@
 #define MOUSEKEY_TIME_TO_MAX    60
 #define MOUSEKEY_MAX_SPEED      7
 #define MOUSEKEY_WHEEL_DELAY    0
-
-#endif
index 2586683127f6d54e100f8c397529a61b6e927502..8b0019e7ba1b76a7cede3a6732c5e473711cad8f 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright 2017 REPLACE_WITH_YOUR_NAME
+/* Copyright 2017 benlyall, MechMerlin
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
index 06ff749b866037896e950381b703ce2c5aec6796..76cb5f39fc4aeb0f379995a9f89868e98486024b 100644 (file)
@@ -13,17 +13,6 @@ Please note that other variants of the KBP V60 are not fully programmable.
 
 Backlight and RGB Underglow are both supported.
 
-To use the backlight and/or RGB underglow:
-* Create a new keymap
-* Create a rules.mk file in the keymap
-* Add RGBLIGHT_ENABLE = yes and/or BACKLIGHT_ENABLE = yes to the rules.mk
-* Setup your keymap to your preference.  Use [the `vimouse` keymap](keymaps/vimouse/keymap.c) as a starting point
-* Some extra keys are defined to allow you to set the red, green and blue values of the underglow directly, rather than using the HSV spectrum.  These are RGB_RI, RGB_RD, RGB_GI, RGB_GD, RGB_BI, RGB_BD for increase and decrease of the red, green and blue channels respectively.
-
-The provided `default` keymap pretty closely matches the default V60 Type R keymap, minus the backlight and underglow control keys.  The `vimouse` keymap is completely customised and makes use of many of the possibilities, including mouse keys, backlighting, RGB underglow, etc.
-
-Note for those customising: The configuration used in the `vimouse` keymap results in about 93% of the available flash being utilised.  Keep that in mind if you're adding functionality.
-
 Note: By default the V60 Type R uses TMK.  You should know what you're doing and none of this is guaranteed to work.  If you want to stick with the TMK default, then the KB Paradise preferred way of creating the hex file is by using https://tkg.io/, selecting Fantastic60 and then defining your keymap.
 
 You will then have to use tkg-toolkit to finish the flashing
@@ -40,7 +29,4 @@ or
 
     make v60_type_r:vimouse
 
-See [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) then the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information.
-
-
-
+See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
index 7a1340a1aca78b49677fce700ffeed8cb7064c34..54a20a78154b119cfa4ad5aefc4a6b52849c9d76 100644 (file)
@@ -52,21 +52,21 @@ BOOTLOADER = atmel-dfu
 # Build Options
 #   change yes to no to disable
 #
-BOOTMAGIC_ENABLE ?= no       # Virtual DIP switch configuration(+1000)
-MOUSEKEY_ENABLE ?= yes       # Mouse keys(+4700)
-EXTRAKEY_ENABLE ?= yes       # Audio control and System control(+450)
-CONSOLE_ENABLE ?= yes        # Console for debug(+400)
-COMMAND_ENABLE ?= yes        # Commands for debug and configuration
+BOOTMAGIC_ENABLE = no       # Virtual DIP switch configuration(+1000)
+MOUSEKEY_ENABLE = yes       # Mouse keys(+4700)
+EXTRAKEY_ENABLE = yes       # Audio control and System control(+450)
+CONSOLE_ENABLE = yes        # Console for debug(+400)
+COMMAND_ENABLE = yes        # Commands for debug and configuration
 # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
-SLEEP_LED_ENABLE ?= no       # Breathing sleep LED during USB suspend
+SLEEP_LED_ENABLE = no       # Breathing sleep LED during USB suspend
 # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
-NKRO_ENABLE ?= no            # USB Nkey Rollover
-BACKLIGHT_ENABLE ?= no       # Enable keyboard backlight functionality on B7 by default
-RGBLIGHT_ENABLE ?= no        # Enable the RGB Underglow
-MIDI_ENABLE ?= no            # MIDI support (+2400 to 4200, depending on config)
-UNICODE_ENABLE ?= no         # Unicode
-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
+NKRO_ENABLE = no            # USB Nkey Rollover
+BACKLIGHT_ENABLE = yes       # Enable keyboard backlight functionality on B7 by default
+RGBLIGHT_ENABLE = yes        # Enable the RGB Underglow
+MIDI_ENABLE = no            # MIDI support (+2400 to 4200, depending on config)
+UNICODE_ENABLE = no         # Unicode
+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
 
 LAYOUTS = 60_ansi
index 86d87e12da2a71adb8745c8a7b4431824cab033b..41eb75807d080e79f5dc16398c120f957f5a0b0f 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright 2017 REPLACE_WITH_YOUR_NAME
+/* Copyright 2017 benlyall, MechMerlin
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
index 3d7aef7eaf0957a80ba5c35ce92c64f1b31d3b6d..25097ed48e8ed4bb15559a7149951104165d4324 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright 2017 REPLACE_WITH_YOUR_NAME
+/* Copyright 2017 benlyall, MechMerlin
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -13,8 +13,7 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-#ifndef V60_TYPE_R_H
-#define V60_TYPE_R_H
+#pragma once
 
 #include "quantum.h"
 
@@ -106,4 +105,3 @@ enum my_keycodes {
       { k40, k41, k42, k43,   k44, k45,   k46, k47 } \
   }
 
-#endif