summaryrefslogtreecommitdiff
path: root/keyboards/roadkit/keymaps
diff options
context:
space:
mode:
authorrootuseralpha <brent.markus@gmail.com>2017-07-20 09:37:16 -0500
committerJack Humbert <jack.humb@gmail.com>2017-07-20 21:52:13 -0400
commit4d665a99aebaf99a33ac0c7e467470940349b99b (patch)
treed6dab405ca6a9983c833071ca5562479c4a54178 /keyboards/roadkit/keymaps
parent4627cab49dc980336e5c4c39fd9ec64fa9993501 (diff)
downloadqmk_firmware-4d665a99aebaf99a33ac0c7e467470940349b99b.tar.gz
qmk_firmware-4d665a99aebaf99a33ac0c7e467470940349b99b.zip
Add files via upload
Diffstat (limited to 'keyboards/roadkit/keymaps')
-rw-r--r--keyboards/roadkit/keymaps/singlesBrent/config.h1
-rw-r--r--keyboards/roadkit/keymaps/singlesBrent/keymap.c22
2 files changed, 13 insertions, 10 deletions
diff --git a/keyboards/roadkit/keymaps/singlesBrent/config.h b/keyboards/roadkit/keymaps/singlesBrent/config.h
index fe2424ae67..45bd44c0be 100644
--- a/keyboards/roadkit/keymaps/singlesBrent/config.h
+++ b/keyboards/roadkit/keymaps/singlesBrent/config.h
@@ -10,7 +10,6 @@
#define BACKLIGHT_PIN B5
#define BACKLIGHT_LEVELS 3
#define BACKLIGHT_ON_STATE 0
- backlight_set(3);
#endif
#endif \ No newline at end of file
diff --git a/keyboards/roadkit/keymaps/singlesBrent/keymap.c b/keyboards/roadkit/keymaps/singlesBrent/keymap.c
index e4333bd551..c915651d07 100644
--- a/keyboards/roadkit/keymaps/singlesBrent/keymap.c
+++ b/keyboards/roadkit/keymaps/singlesBrent/keymap.c
@@ -1,9 +1,6 @@
#include "roadkit.h"
#include "action_layer.h"
#include "eeconfig.h"
-//#ifdef BACKLIGHT_ENABLE
-// #include "backlight.h"
-//#endif
extern keymap_config_t keymap_config;
@@ -27,6 +24,13 @@ extern keymap_config_t keymap_config;
#define _______ KC_TRNS
#define XXXXXXX KC_NO
+void matrix_init_user(void) {
+ backlight_init();
+ backlight_set(3);
+}
+
+
+
//Tap Dance Declarations
enum {
@@ -144,9 +148,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* `-----`-----`-----`-----'
*/
[_NP] = /* Numpad */
- SINGLES_KEYMAP(KC_7, KC_8, KC_9, KC_SLASH, \
- KC_4, KC_5, KC_6, KC_KP_ASTERISK, \
- KC_1, KC_2, KC_3, KC_MINUS, \
+ SINGLES_KEYMAP(KC_7, KC_8, KC_9, KC_SLASH, \
+ KC_4, KC_5, KC_6, KC_KP_ASTERISK, \
+ KC_1, KC_2, KC_3, KC_MINUS, \
TD(TD_0_L3), TD(TD_DOT_L2), TD(TD_KP_PLUS_L1), TD(TD_EQUAL_NP)),
/* L1
@@ -162,9 +166,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
*/
[_L1] = /* LAYER 1 */
SINGLES_KEYMAP(KC_ESCAPE, KC_BSPACE, KC_HOME, KC_PGUP, \
- KC_TAB, KC_UP, KC_END, KC_PGDOWN, \
- KC_LEFT, KC_DOWN, KC_RIGHT, KC_KP_ENTER, \
- KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
+ KC_TAB, KC_UP, KC_END, KC_PGDOWN, \
+ KC_LEFT, KC_DOWN, KC_RIGHT, KC_KP_ENTER, \
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
/* L2
* ,-----------------------.