aboutsummaryrefslogtreecommitdiff
path: root/keyboards/abstract/ellipse/keymaps
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/abstract/ellipse/keymaps')
-rw-r--r--keyboards/abstract/ellipse/keymaps/abstractkb/config.h23
-rw-r--r--keyboards/abstract/ellipse/keymaps/abstractkb/keymap.c51
-rw-r--r--keyboards/abstract/ellipse/keymaps/abstractkb/readme.md3
-rw-r--r--keyboards/abstract/ellipse/keymaps/abstractkb/rules.mk1
-rw-r--r--keyboards/abstract/ellipse/keymaps/default/keymap.c51
-rw-r--r--keyboards/abstract/ellipse/keymaps/default/readme.md6
6 files changed, 135 insertions, 0 deletions
diff --git a/keyboards/abstract/ellipse/keymaps/abstractkb/config.h b/keyboards/abstract/ellipse/keymaps/abstractkb/config.h
new file mode 100644
index 000000000..3bc66cd9b
--- /dev/null
+++ b/keyboards/abstract/ellipse/keymaps/abstractkb/config.h
@@ -0,0 +1,23 @@
1/* Copyright 2019 AbstractKB
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#pragma once
18
19#define BACKLIGHT_BREATHING
20#define BREATHING_PERIOD 2
21#define RGBLIGHT_ANIMATIONS
22
23// place overrides here
diff --git a/keyboards/abstract/ellipse/keymaps/abstractkb/keymap.c b/keyboards/abstract/ellipse/keymaps/abstractkb/keymap.c
new file mode 100644
index 000000000..435042318
--- /dev/null
+++ b/keyboards/abstract/ellipse/keymaps/abstractkb/keymap.c
@@ -0,0 +1,51 @@
1/* Copyright 2019 AbstractKB
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include QMK_KEYBOARD_H
17
18// Defines the keycodes used by our macros in process_record_user
19/*enum custom_keycodes {
20 MYKEY = SAFE_RANGE
21};*/
22
23const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
24 [0] = LAYOUT( /* Base */
25 KC_MUTE, RGB_TOG, BL_TOGG,
26 RGB_M_SW, RGB_M_P, BL_BRTG
27 )
28};
29
30bool encoder_update_user(uint8_t index, bool clockwise) {
31 if (index == 0) { /* First encoder */
32 if (clockwise) {
33 tap_code(KC_VOLU);
34 } else {
35 tap_code(KC_VOLD);
36 }
37 } else if (index == 1) { /* Second encoder */
38 if (clockwise) {
39 rgblight_increase_hue_noeeprom();
40 } else {
41 rgblight_decrease_hue_noeeprom();
42 }
43 } else if (index == 2) { /* Third encoder */
44 if (clockwise) {
45 backlight_increase();
46 } else {
47 backlight_decrease();
48 }
49 }
50 return true;
51}
diff --git a/keyboards/abstract/ellipse/keymaps/abstractkb/readme.md b/keyboards/abstract/ellipse/keymaps/abstractkb/readme.md
new file mode 100644
index 000000000..5db2eb647
--- /dev/null
+++ b/keyboards/abstract/ellipse/keymaps/abstractkb/readme.md
@@ -0,0 +1,3 @@
1# My keymap
2
3This was used for testing lights but will become my personal keymap \ No newline at end of file
diff --git a/keyboards/abstract/ellipse/keymaps/abstractkb/rules.mk b/keyboards/abstract/ellipse/keymaps/abstractkb/rules.mk
new file mode 100644
index 000000000..54a2685bf
--- /dev/null
+++ b/keyboards/abstract/ellipse/keymaps/abstractkb/rules.mk
@@ -0,0 +1 @@
BACKLIGHT_ENABLE = yes \ No newline at end of file
diff --git a/keyboards/abstract/ellipse/keymaps/default/keymap.c b/keyboards/abstract/ellipse/keymaps/default/keymap.c
new file mode 100644
index 000000000..dbcba36f5
--- /dev/null
+++ b/keyboards/abstract/ellipse/keymaps/default/keymap.c
@@ -0,0 +1,51 @@
1/* Copyright 2019 AbstractKB
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include QMK_KEYBOARD_H
17
18// Defines the keycodes used by our macros in process_record_user
19/*enum custom_keycodes {
20 MYKEY = SAFE_RANGE
21};*/
22
23const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
24 [0] = LAYOUT( /* Base */
25 KC_A, RGB_TOG, KC_C,
26 KC_X, KC_Y, KC_Z
27 )
28};
29
30bool encoder_update_user(uint8_t index, bool clockwise) {
31 if (index == 0) { /* First encoder */
32 if (clockwise) {
33 tap_code(KC_O);
34 } else {
35 tap_code(KC_P);
36 }
37 } else if (index == 1) { /* Second encoder */
38 if (clockwise) {
39 rgblight_increase_hue_noeeprom();
40 } else {
41 rgblight_decrease_hue_noeeprom();
42 }
43 } else if (index == 2) {
44 if (clockwise) {
45 tap_code(KC_M);
46 } else {
47 tap_code(KC_R);
48 }
49 }
50 return true;
51}
diff --git a/keyboards/abstract/ellipse/keymaps/default/readme.md b/keyboards/abstract/ellipse/keymaps/default/readme.md
new file mode 100644
index 000000000..e14c0c8bd
--- /dev/null
+++ b/keyboards/abstract/ellipse/keymaps/default/readme.md
@@ -0,0 +1,6 @@
1# The default keymap for Ellipse
2
3This keymap allows for basic testing of the keypad once assembled.
4Each knob and key outputs a different standard letter keycode,
5except for the middle knob which changes the hue of the RGB LEDs and when
6pressed down turns off the RGB LEDs \ No newline at end of file