diff options
author | Wilba6582 <Jason.S.Wiliams@gmail.com> | 2018-07-14 16:51:34 +1000 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2018-07-15 12:50:36 -0400 |
commit | 3d9fda3629c09819f2b7c07c68e3504bdf4cd0d3 (patch) | |
tree | 43851ffdfdce8a81762fe2641639d4d6131903c3 /keyboards/rama/m10_b/keymaps | |
parent | ffa119941cac14d6e81853da670f8223823112c3 (diff) | |
download | qmk_firmware-3d9fda3629c09819f2b7c07c68e3504bdf4cd0d3.tar.gz qmk_firmware-3d9fda3629c09819f2b7c07c68e3504bdf4cd0d3.zip |
Added M10-B implementation
Diffstat (limited to 'keyboards/rama/m10_b/keymaps')
-rw-r--r-- | keyboards/rama/m10_b/keymaps/default/config.h | 24 | ||||
-rw-r--r-- | keyboards/rama/m10_b/keymaps/default/keymap.c | 26 | ||||
-rw-r--r-- | keyboards/rama/m10_b/keymaps/default/readme.md | 7 | ||||
-rw-r--r-- | keyboards/rama/m10_b/keymaps/knops/config.h | 24 | ||||
-rw-r--r-- | keyboards/rama/m10_b/keymaps/knops/keymap.c | 64 | ||||
-rw-r--r-- | keyboards/rama/m10_b/keymaps/knops/readme.md | 7 |
6 files changed, 152 insertions, 0 deletions
diff --git a/keyboards/rama/m10_b/keymaps/default/config.h b/keyboards/rama/m10_b/keymaps/default/config.h new file mode 100644 index 0000000000..d150575c1a --- /dev/null +++ b/keyboards/rama/m10_b/keymaps/default/config.h @@ -0,0 +1,24 @@ +/* Copyright 2018 Wilba + * + * 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 + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * 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_USER_H +#define CONFIG_USER_H + +#include "../../config.h" + +// place overrides here + +#endif diff --git a/keyboards/rama/m10_b/keymaps/default/keymap.c b/keyboards/rama/m10_b/keymaps/default/keymap.c new file mode 100644 index 0000000000..8002b8c7cd --- /dev/null +++ b/keyboards/rama/m10_b/keymaps/default/keymap.c @@ -0,0 +1,26 @@ +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + + LAYOUT( + KC_KP_7, KC_KP_8, KC_KP_9, KC_KP_4, KC_KP_5, KC_KP_6, KC_KP_1, KC_KP_2, KC_KP_3, KC_KP_0 ) + +}; + +const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) +{ + return MACRO_NONE; +} + +void matrix_init_user(void) +{ +} + +void matrix_scan_user(void) +{ +} + +bool process_record_user(uint16_t keycode, keyrecord_t *record) +{ + return true; +} diff --git a/keyboards/rama/m10_b/keymaps/default/readme.md b/keyboards/rama/m10_b/keymaps/default/readme.md new file mode 100644 index 0000000000..3b3d6c3970 --- /dev/null +++ b/keyboards/rama/m10_b/keymaps/default/readme.md @@ -0,0 +1,7 @@ +![RAMA M10-B Layout Image](https://static1.squarespace.com/static/563c788ae4b099120ae219e2/5b4997390e2e72d65f7a8e83/5b49993d6d2a732ab3595146/1531550014142/M10-Layout.jpg) + +# Default RAMA M10-B Layout + +This is an example layout. + + diff --git a/keyboards/rama/m10_b/keymaps/knops/config.h b/keyboards/rama/m10_b/keymaps/knops/config.h new file mode 100644 index 0000000000..d150575c1a --- /dev/null +++ b/keyboards/rama/m10_b/keymaps/knops/config.h @@ -0,0 +1,24 @@ +/* Copyright 2018 Wilba + * + * 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 + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * 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_USER_H +#define CONFIG_USER_H + +#include "../../config.h" + +// place overrides here + +#endif diff --git a/keyboards/rama/m10_b/keymaps/knops/keymap.c b/keyboards/rama/m10_b/keymaps/knops/keymap.c new file mode 100644 index 0000000000..b90ca686fb --- /dev/null +++ b/keyboards/rama/m10_b/keymaps/knops/keymap.c @@ -0,0 +1,64 @@ +#include QMK_KEYBOARD_H + +/*KNOPS_MISC*/ + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + + /*KNOPS_LAYOUT*/ + +}; + +// M10-B LEDs are all in parallel and controlled by the QMK backlight +// functionality. LED functions here are for possible future use +// as layer indicators, etc. and not implemented yet. +// +// To implement LED functions here, QMK backlight functionality +// will need to be disabled either via rules.mk or config.h +// or overriding the backlight functions to do nothing. +// +// LEDs are driven by a transistor connected to pin C6. +// + +void set_led_state(int ledId, bool state) +{ +} + +void led_init_ports() +{ +} + +void led_set_layer(int layer) +{ + led_init_ports(); + + led_set_layer(0); + + /*KNOPS_SIMPLELED_STATES*/ +} + +void matrix_init_user(void) +{ + /*KNOPS_INIT*/ +} + +const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) +{ + /*KNOPS_MACRO*/ + return NULL; +} + +void matrix_scan_user(void) +{ + /*KNOPS_SCAN*/ +} + +void led_set_user(uint8_t usb_led) +{ + /*KNOPS_FUNCTIONALLED_STATES*/ +} + +bool process_record_user(uint16_t keycode, keyrecord_t *record) +{ + /*KNOPS_PROCESS_STATE*/ + return NULL; +} diff --git a/keyboards/rama/m10_b/keymaps/knops/readme.md b/keyboards/rama/m10_b/keymaps/knops/readme.md new file mode 100644 index 0000000000..3b3d6c3970 --- /dev/null +++ b/keyboards/rama/m10_b/keymaps/knops/readme.md @@ -0,0 +1,7 @@ +![RAMA M10-B Layout Image](https://static1.squarespace.com/static/563c788ae4b099120ae219e2/5b4997390e2e72d65f7a8e83/5b49993d6d2a732ab3595146/1531550014142/M10-Layout.jpg) + +# Default RAMA M10-B Layout + +This is an example layout. + + |