summaryrefslogtreecommitdiffstats
path: root/keyboards/gherkin
diff options
context:
space:
mode:
authorBatuhan Baserdem <bbaserdem@users.noreply.github.com>2018-05-31 21:55:45 -0400
committerDrashna Jaelre <drashna@live.com>2018-05-31 18:55:45 -0700
commit8eaf23ae8146766615cc1cec3fc8e04111e8ef49 (patch)
treed33b9b4609b5df899c243a1f9525eed1c049098f /keyboards/gherkin
parentabce980b8bbc6d1bae16513a50662a549b196c1b (diff)
User space fixed (#3095)
* Put in my keymaps * Fixed all but weird lets split issue * Organized and tried to trobleshoot lets split * Organized and tried to trobleshoot lets split * Added bbaserdem keymaps * Added bbaserdem keymaps * Fixed stuff * FIxed a filename error
Diffstat (limited to 'keyboards/gherkin')
-rw-r--r--keyboards/gherkin/keymaps/bbaserdem/README.md11
-rw-r--r--keyboards/gherkin/keymaps/bbaserdem/config.h13
-rw-r--r--keyboards/gherkin/keymaps/bbaserdem/keymap.c36
-rw-r--r--keyboards/gherkin/keymaps/bbaserdem/rules.mk14
4 files changed, 74 insertions, 0 deletions
diff --git a/keyboards/gherkin/keymaps/bbaserdem/README.md b/keyboards/gherkin/keymaps/bbaserdem/README.md
new file mode 100644
index 0000000000..3c9a5e98b3
--- /dev/null
+++ b/keyboards/gherkin/keymaps/bbaserdem/README.md
@@ -0,0 +1,11 @@
+# Gherkin Layout
+This is my gherkin layout.
+It is used as a game pad, and key layout is inspired by spare keys I had lying around.
+The firmware is very simple, and only includes one layer keymap, and RGB effects.
+
+# Flashing
+The following command should be used from the main qmk directory.
+```
+make gherkin:bbaserdem
+sudo avrdude -p atmgea34u4 -P `ls /dev/ttyACM*` -c avr109 -U flash:.build/gherkin_bbaserdem.hex
+```
diff --git a/keyboards/gherkin/keymaps/bbaserdem/config.h b/keyboards/gherkin/keymaps/bbaserdem/config.h
new file mode 100644
index 0000000000..2bd89e8ece
--- /dev/null
+++ b/keyboards/gherkin/keymaps/bbaserdem/config.h
@@ -0,0 +1,13 @@
+#ifndef CONFIG_USER_H
+#define CONFIG_USER_H
+
+#include "../../config.h"
+#define RGB_DI_PIN F6
+#define RGBLED_NUM 10
+#define RGBLIGHT_ANIMATIONS
+#ifdef BACKLIGHT_LEVELS
+#undef BACKLIGHT_LEVELS
+#endif
+#define BACKLIGHT_LEVELS 3
+
+#endif
diff --git a/keyboards/gherkin/keymaps/bbaserdem/keymap.c b/keyboards/gherkin/keymaps/bbaserdem/keymap.c
new file mode 100644
index 0000000000..6e9898a277
--- /dev/null
+++ b/keyboards/gherkin/keymaps/bbaserdem/keymap.c
@@ -0,0 +1,36 @@
+// This is a game-pad gherkin layout with RGB and LED lights
+
+#include "gherkin.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| | --> | , | . |
+ * `-----------------------------------------------------------'
+ */
+ KEYMAP(
+ 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);
+}
diff --git a/keyboards/gherkin/keymaps/bbaserdem/rules.mk b/keyboards/gherkin/keymaps/bbaserdem/rules.mk
new file mode 100644
index 0000000000..4e3a41820b
--- /dev/null
+++ b/keyboards/gherkin/keymaps/bbaserdem/rules.mk
@@ -0,0 +1,14 @@
+ifndef QUANTUM_DIR
+ include ../../../../Makefile
+endif
+
+STENO_ENABLE = no # Additional protocols for Stenography(+1700), requires VIRTSER
+MOUSEKEY_ENABLE = no # Mouse keys(+4700)
+EXTRAKEY_ENABLE = no # Audio control and System control(+450)
+CONSOLE_ENABLE = no # Console for debug(+400)
+COMMAND_ENABLE = no # Commands for debug and configuration
+SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
+NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
+AUDIO_ENABLE = no # Enable audio output from keyboard
+RGBLIGHT_ENABLE = yes # Enable RBG light strips
+BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality