summaryrefslogtreecommitdiffstats
path: root/keyboards/40percentclub/gherkin/keymaps/bbaserdem/keymap.c
diff options
context:
space:
mode:
authorzvecr <z.zvecr@gmail.com>2018-11-08 23:17:41 +0000
committerDrashna Jaelre <drashna@live.com>2018-11-08 15:17:41 -0800
commit73883425a55f23a319eb1522c2e3ce52b8e2f042 (patch)
tree83ba7208aeabd10d8d0cf36f573ae7b25ef79713 /keyboards/40percentclub/gherkin/keymaps/bbaserdem/keymap.c
parentef84bd979979f092980dc68d513a906e084c8c57 (diff)
relocate 40percent.club boards to new parent folder (#4380)
* Initial move of 40percent.club boards to common parent folder. * Refactor readme files to be consistent * Refactor readme files to be consistent - fix make command examples. * Refactor readme files to be consistent - align readme filenames. * Refactor readme files to be consistent - fix repo url. * Disable Community keymap builds as they are currently failing due to missing functionality * Move more of 40percent.club boards to common parent folder. * Refactor readme files to be consistent - align readme filenames. * Refactor readme files to be consistent - fix make command examples.
Diffstat (limited to 'keyboards/40percentclub/gherkin/keymaps/bbaserdem/keymap.c')
-rw-r--r--keyboards/40percentclub/gherkin/keymaps/bbaserdem/keymap.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/keyboards/40percentclub/gherkin/keymaps/bbaserdem/keymap.c b/keyboards/40percentclub/gherkin/keymaps/bbaserdem/keymap.c
new file mode 100644
index 0000000000..0d3c8557c5
--- /dev/null
+++ b/keyboards/40percentclub/gherkin/keymaps/bbaserdem/keymap.c
@@ -0,0 +1,36 @@
+// This is a game-pad gherkin layout with RGB and LED lights
+
+#include QMK_KEYBOARD_H
+
+backlight_config_t backlight_config;
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+/* Game pad
+ * ,-----------------------------------------------------------.
+ * | Esc | 1 | 2 | 3 | 4 | 5 | 6 | Ctl | Alt | ~ |
+ * |-----+-----+-----+-----+-----+-----+-----+-----+-----+-----|
+ * | Tab | Q | W | E | R | T | |^| | ; | ' | / |
+ * |-----+-----+-----+-----+-----+-----+-----+-----+-----+-----|
+ * | Shf | A | S | D | F | <-- | |v| | --> | , | . |
+ * `-----------------------------------------------------------'
+ */
+ LAYOUT_ortho_3x10(
+ KC_ESCAPE, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_LCTRL, KC_LALT, KC_GRAVE,
+ KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_UP, KC_SCLN, KC_QUOTE, KC_SLASH,
+ KC_LSHIFT, KC_A, KC_S, KC_D, KC_F, KC_LEFT, KC_DOWN, KC_RIGHT, KC_COMMA, KC_DOT
+ )
+};
+
+void matrix_init_user(void) {
+ // Set LED's to max
+ _delay_us(300);
+ backlight_config.level = 2;
+ backlight_config.enable = 1;
+ eeconfig_update_backlight(backlight_config.raw);
+ backlight_set(backlight_config.level);
+ // Set RGB to rainbow mood light
+ rgblight_enable();
+ rgblight_mode(1);
+ rgblight_sethsv(120,255,255);
+ rgblight_mode(6);
+}