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 | |
parent | ffa119941cac14d6e81853da670f8223823112c3 (diff) | |
download | qmk_firmware-3d9fda3629c09819f2b7c07c68e3504bdf4cd0d3.tar.gz qmk_firmware-3d9fda3629c09819f2b7c07c68e3504bdf4cd0d3.zip |
Added M10-B implementation
-rw-r--r-- | keyboards/rama/m10_b/config.h | 189 | ||||
-rw-r--r-- | keyboards/rama/m10_b/info.json | 23 | ||||
-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 | ||||
-rw-r--r-- | keyboards/rama/m10_b/m10_b.c | 44 | ||||
-rw-r--r-- | keyboards/rama/m10_b/m10_b.h | 29 | ||||
-rw-r--r-- | keyboards/rama/m10_b/readme.md | 15 | ||||
-rw-r--r-- | keyboards/rama/m10_b/rules.mk | 68 | ||||
-rw-r--r-- | keyboards/rama/m6_a/keymaps/default/readme.md | 2 |
13 files changed, 521 insertions, 1 deletions
diff --git a/keyboards/rama/m10_b/config.h b/keyboards/rama/m10_b/config.h new file mode 100644 index 000000000..de626dba5 --- /dev/null +++ b/keyboards/rama/m10_b/config.h | |||
@@ -0,0 +1,189 @@ | |||
1 | /* | ||
2 | Copyright 2018 Wilba | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #ifndef CONFIG_H | ||
19 | #define CONFIG_H | ||
20 | |||
21 | #include "config_common.h" | ||
22 | |||
23 | /* USB Device descriptor parameter */ | ||
24 | #define VENDOR_ID 0x5241 // "RW" | ||
25 | #define PRODUCT_ID 0x00AB // 10-B | ||
26 | #define DEVICE_VER 0x0001 | ||
27 | #define MANUFACTURER RAMA.WORKS | ||
28 | #define PRODUCT RAMA M10-B | ||
29 | #define DESCRIPTION RAMA M10-B Macropad | ||
30 | |||
31 | /* key matrix size */ | ||
32 | #define MATRIX_ROWS 1 | ||
33 | #define MATRIX_COLS 10 | ||
34 | |||
35 | /* | ||
36 | * Keyboard Matrix Assignments | ||
37 | * | ||
38 | * Change this to how you wired your keyboard | ||
39 | * COLS: AVR pins used for columns, left to right | ||
40 | * ROWS: AVR pins used for rows, top to bottom | ||
41 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
42 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
43 | * | ||
44 | */ | ||
45 | #define MATRIX_ROW_PINS { E6 } | ||
46 | #define MATRIX_COL_PINS { D7, B6, F0, D6, B5, F1, D4, B4, F4, F5 } | ||
47 | #define UNUSED_PINS | ||
48 | |||
49 | /* COL2ROW, ROW2COL, or CUSTOM_MATRIX */ | ||
50 | #define DIODE_DIRECTION COL2ROW | ||
51 | |||
52 | #define BACKLIGHT_PIN C6 | ||
53 | //#define BACKLIGHT_BREATHING | ||
54 | #define BACKLIGHT_LEVELS 3 | ||
55 | |||
56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
57 | #define DEBOUNCING_DELAY 5 | ||
58 | |||
59 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
60 | //#define MATRIX_HAS_GHOST | ||
61 | |||
62 | /* number of backlight levels */ | ||
63 | |||
64 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
65 | #define LOCKING_SUPPORT_ENABLE | ||
66 | /* Locking resynchronize hack */ | ||
67 | #define LOCKING_RESYNC_ENABLE | ||
68 | |||
69 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
70 | * This is userful for the Windows task manager shortcut (ctrl+shift+esc). | ||
71 | */ | ||
72 | // #define GRAVE_ESC_CTRL_OVERRIDE | ||
73 | |||
74 | /* | ||
75 | * Force NKRO | ||
76 | * | ||
77 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
78 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
79 | * makefile for this to work.) | ||
80 | * | ||
81 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
82 | * until the next keyboard reset. | ||
83 | * | ||
84 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
85 | * fully operational during normal computer usage. | ||
86 | * | ||
87 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
88 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
89 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
90 | * power-up. | ||
91 | * | ||
92 | */ | ||
93 | //#define FORCE_NKRO | ||
94 | |||
95 | /* | ||
96 | * Magic Key Options | ||
97 | * | ||
98 | * Magic keys are hotkey commands that allow control over firmware functions of | ||
99 | * the keyboard. They are best used in combination with the HID Listen program, | ||
100 | * found here: https://www.pjrc.com/teensy/hid_listen.html | ||
101 | * | ||
102 | * The options below allow the magic key functionality to be changed. This is | ||
103 | * useful if your keyboard/keypad is missing keys and you want magic key support. | ||
104 | * | ||
105 | */ | ||
106 | |||
107 | /* key combination for magic key command */ | ||
108 | #define IS_COMMAND() ( \ | ||
109 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | ||
110 | ) | ||
111 | |||
112 | /* control how magic key switches layers */ | ||
113 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true | ||
114 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true | ||
115 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false | ||
116 | |||
117 | /* override magic key keymap */ | ||
118 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS | ||
119 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS | ||
120 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM | ||
121 | //#define MAGIC_KEY_HELP1 H | ||
122 | //#define MAGIC_KEY_HELP2 SLASH | ||
123 | //#define MAGIC_KEY_DEBUG D | ||
124 | //#define MAGIC_KEY_DEBUG_MATRIX X | ||
125 | //#define MAGIC_KEY_DEBUG_KBD K | ||
126 | //#define MAGIC_KEY_DEBUG_MOUSE M | ||
127 | //#define MAGIC_KEY_VERSION V | ||
128 | //#define MAGIC_KEY_STATUS S | ||
129 | //#define MAGIC_KEY_CONSOLE C | ||
130 | //#define MAGIC_KEY_LAYER0_ALT1 ESC | ||
131 | //#define MAGIC_KEY_LAYER0_ALT2 GRAVE | ||
132 | //#define MAGIC_KEY_LAYER0 0 | ||
133 | //#define MAGIC_KEY_LAYER1 1 | ||
134 | //#define MAGIC_KEY_LAYER2 2 | ||
135 | //#define MAGIC_KEY_LAYER3 3 | ||
136 | //#define MAGIC_KEY_LAYER4 4 | ||
137 | //#define MAGIC_KEY_LAYER5 5 | ||
138 | //#define MAGIC_KEY_LAYER6 6 | ||
139 | //#define MAGIC_KEY_LAYER7 7 | ||
140 | //#define MAGIC_KEY_LAYER8 8 | ||
141 | //#define MAGIC_KEY_LAYER9 9 | ||
142 | //#define MAGIC_KEY_BOOTLOADER PAUSE | ||
143 | //#define MAGIC_KEY_LOCK CAPS | ||
144 | //#define MAGIC_KEY_EEPROM E | ||
145 | //#define MAGIC_KEY_NKRO N | ||
146 | //#define MAGIC_KEY_SLEEP_LED Z | ||
147 | |||
148 | /* | ||
149 | * Feature disable options | ||
150 | * These options are also useful to firmware size reduction. | ||
151 | */ | ||
152 | |||
153 | /* disable debug print */ | ||
154 | //#define NO_DEBUG | ||
155 | |||
156 | /* disable print */ | ||
157 | //#define NO_PRINT | ||
158 | |||
159 | /* disable action features */ | ||
160 | //#define NO_ACTION_LAYER | ||
161 | //#define NO_ACTION_TAPPING | ||
162 | //#define NO_ACTION_ONESHOT | ||
163 | //#define NO_ACTION_MACRO | ||
164 | //#define NO_ACTION_FUNCTION | ||
165 | |||
166 | /* | ||
167 | * MIDI options | ||
168 | */ | ||
169 | |||
170 | /* Prevent use of disabled MIDI features in the keymap */ | ||
171 | //#define MIDI_ENABLE_STRICT 1 | ||
172 | |||
173 | /* enable basic MIDI features: | ||
174 | - MIDI notes can be sent when in Music mode is on | ||
175 | */ | ||
176 | //#define MIDI_BASIC | ||
177 | |||
178 | /* enable advanced MIDI features: | ||
179 | - MIDI notes can be added to the keymap | ||
180 | - Octave shift and transpose | ||
181 | - Virtual sustain, portamento, and modulation wheel | ||
182 | - etc. | ||
183 | */ | ||
184 | //#define MIDI_ADVANCED | ||
185 | |||
186 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ | ||
187 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 | ||
188 | |||
189 | #endif | ||
diff --git a/keyboards/rama/m10_b/info.json b/keyboards/rama/m10_b/info.json new file mode 100644 index 000000000..fb144030d --- /dev/null +++ b/keyboards/rama/m10_b/info.json | |||
@@ -0,0 +1,23 @@ | |||
1 | { | ||
2 | "keyboard_name": "m10-b", | ||
3 | "url": "", | ||
4 | "maintainer": "qmk", | ||
5 | "width": 3, | ||
6 | "height": 4, | ||
7 | "layouts": { | ||
8 | "LAYOUT": { | ||
9 | "layout": [ | ||
10 | { "x": 0, "y": 0 }, | ||
11 | { "x": 1, "y": 0 }, | ||
12 | { "x": 2, "y": 0 }, | ||
13 | { "x": 0, "y": 1 }, | ||
14 | { "x": 1, "y": 1 }, | ||
15 | { "x": 2, "y": 1 }, | ||
16 | { "x": 0, "y": 2 }, | ||
17 | { "x": 1, "y": 2 }, | ||
18 | { "x": 2, "y": 2 }, | ||
19 | { "x": 1, "y": 3, "w": 2.0 } | ||
20 | ] | ||
21 | } | ||
22 | } | ||
23 | } | ||
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 000000000..d150575c1 --- /dev/null +++ b/keyboards/rama/m10_b/keymaps/default/config.h | |||
@@ -0,0 +1,24 @@ | |||
1 | /* Copyright 2018 Wilba | ||
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 | #ifndef CONFIG_USER_H | ||
18 | #define CONFIG_USER_H | ||
19 | |||
20 | #include "../../config.h" | ||
21 | |||
22 | // place overrides here | ||
23 | |||
24 | #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 000000000..8002b8c7c --- /dev/null +++ b/keyboards/rama/m10_b/keymaps/default/keymap.c | |||
@@ -0,0 +1,26 @@ | |||
1 | #include QMK_KEYBOARD_H | ||
2 | |||
3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
4 | |||
5 | LAYOUT( | ||
6 | 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 ) | ||
7 | |||
8 | }; | ||
9 | |||
10 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | ||
11 | { | ||
12 | return MACRO_NONE; | ||
13 | } | ||
14 | |||
15 | void matrix_init_user(void) | ||
16 | { | ||
17 | } | ||
18 | |||
19 | void matrix_scan_user(void) | ||
20 | { | ||
21 | } | ||
22 | |||
23 | bool process_record_user(uint16_t keycode, keyrecord_t *record) | ||
24 | { | ||
25 | return true; | ||
26 | } | ||
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 000000000..3b3d6c397 --- /dev/null +++ b/keyboards/rama/m10_b/keymaps/default/readme.md | |||
@@ -0,0 +1,7 @@ | |||
1 |  | ||
2 | |||
3 | # Default RAMA M10-B Layout | ||
4 | |||
5 | This is an example layout. | ||
6 | |||
7 | |||
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 000000000..d150575c1 --- /dev/null +++ b/keyboards/rama/m10_b/keymaps/knops/config.h | |||
@@ -0,0 +1,24 @@ | |||
1 | /* Copyright 2018 Wilba | ||
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 | #ifndef CONFIG_USER_H | ||
18 | #define CONFIG_USER_H | ||
19 | |||
20 | #include "../../config.h" | ||
21 | |||
22 | // place overrides here | ||
23 | |||
24 | #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 000000000..b90ca686f --- /dev/null +++ b/keyboards/rama/m10_b/keymaps/knops/keymap.c | |||
@@ -0,0 +1,64 @@ | |||
1 | #include QMK_KEYBOARD_H | ||
2 | |||
3 | /*KNOPS_MISC*/ | ||
4 | |||
5 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
6 | |||
7 | /*KNOPS_LAYOUT*/ | ||
8 | |||
9 | }; | ||
10 | |||
11 | // M10-B LEDs are all in parallel and controlled by the QMK backlight | ||
12 | // functionality. LED functions here are for possible future use | ||
13 | // as layer indicators, etc. and not implemented yet. | ||
14 | // | ||
15 | // To implement LED functions here, QMK backlight functionality | ||
16 | // will need to be disabled either via rules.mk or config.h | ||
17 | // or overriding the backlight functions to do nothing. | ||
18 | // | ||
19 | // LEDs are driven by a transistor connected to pin C6. | ||
20 | // | ||
21 | |||
22 | void set_led_state(int ledId, bool state) | ||
23 | { | ||
24 | } | ||
25 | |||
26 | void led_init_ports() | ||
27 | { | ||
28 | } | ||
29 | |||
30 | void led_set_layer(int layer) | ||
31 | { | ||
32 | led_init_ports(); | ||
33 | |||
34 | led_set_layer(0); | ||
35 | |||
36 | /*KNOPS_SIMPLELED_STATES*/ | ||
37 | } | ||
38 | |||
39 | void matrix_init_user(void) | ||
40 | { | ||
41 | /*KNOPS_INIT*/ | ||
42 | } | ||
43 | |||
44 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | ||
45 | { | ||
46 | /*KNOPS_MACRO*/ | ||
47 | return NULL; | ||
48 | } | ||
49 | |||
50 | void matrix_scan_user(void) | ||
51 | { | ||
52 | /*KNOPS_SCAN*/ | ||
53 | } | ||
54 | |||
55 | void led_set_user(uint8_t usb_led) | ||
56 | { | ||
57 | /*KNOPS_FUNCTIONALLED_STATES*/ | ||
58 | } | ||
59 | |||
60 | bool process_record_user(uint16_t keycode, keyrecord_t *record) | ||
61 | { | ||
62 | /*KNOPS_PROCESS_STATE*/ | ||
63 | return NULL; | ||
64 | } | ||
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 000000000..3b3d6c397 --- /dev/null +++ b/keyboards/rama/m10_b/keymaps/knops/readme.md | |||
@@ -0,0 +1,7 @@ | |||
1 |  | ||
2 | |||
3 | # Default RAMA M10-B Layout | ||
4 | |||
5 | This is an example layout. | ||
6 | |||
7 | |||
diff --git a/keyboards/rama/m10_b/m10_b.c b/keyboards/rama/m10_b/m10_b.c new file mode 100644 index 000000000..f43f6e2a1 --- /dev/null +++ b/keyboards/rama/m10_b/m10_b.c | |||
@@ -0,0 +1,44 @@ | |||
1 | /* Copyright 2018 Wilba | ||
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 "m10_b.h" | ||
17 | /* | ||
18 | void matrix_init_kb(void) { | ||
19 | // put your keyboard start-up code here | ||
20 | // runs once when the firmware starts up | ||
21 | |||
22 | matrix_init_user(); | ||
23 | } | ||
24 | |||
25 | void matrix_scan_kb(void) { | ||
26 | // put your looping keyboard code here | ||
27 | // runs every cycle (a lot) | ||
28 | |||
29 | matrix_scan_user(); | ||
30 | } | ||
31 | |||
32 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | ||
33 | // put your per-action keyboard code here | ||
34 | // runs for every action, just before processing by the firmware | ||
35 | |||
36 | return process_record_user(keycode, record); | ||
37 | } | ||
38 | |||
39 | void led_set_kb(uint8_t usb_led) { | ||
40 | // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here | ||
41 | |||
42 | led_set_user(usb_led); | ||
43 | } | ||
44 | */ | ||
diff --git a/keyboards/rama/m10_b/m10_b.h b/keyboards/rama/m10_b/m10_b.h new file mode 100644 index 000000000..d55ad598c --- /dev/null +++ b/keyboards/rama/m10_b/m10_b.h | |||
@@ -0,0 +1,29 @@ | |||
1 | /* Copyright 2018 Wilba | ||
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 "quantum.h" | ||
17 | |||
18 | #ifndef RAMA_M10_B_H | ||
19 | #define RAMA_M10_B_H | ||
20 | |||
21 | // This a shortcut to help you visually see your layout. | ||
22 | // The first section contains all of the arguments | ||
23 | // The second converts the arguments into a two-dimensional array | ||
24 | #define LAYOUT( \ | ||
25 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09 ) \ | ||
26 | { \ | ||
27 | {K00, K01, K02, K03, K04, K05, K06, K07, K08, K09}, \ | ||
28 | } | ||
29 | #endif // RAMA_M10_B | ||
diff --git a/keyboards/rama/m10_b/readme.md b/keyboards/rama/m10_b/readme.md new file mode 100644 index 000000000..6fb04c604 --- /dev/null +++ b/keyboards/rama/m10_b/readme.md | |||
@@ -0,0 +1,15 @@ | |||
1 | # RAMA M10-B | ||
2 | |||
3 |  | ||
4 | |||
5 | Mechanical Mini Pad. [More info at Massdrop](https://www.massdrop.com/buy/rama-m10-a) | ||
6 | |||
7 | Keyboard Maintainer: [Wilba6582](https://github.com/Wilba6582) | ||
8 | Hardware Supported: RAMA M10-B PCB | ||
9 | Hardware Availability: [Massdrop](https://www.massdrop.com/buy/rama-m10-a) | ||
10 | |||
11 | Make example for this keyboard (after setting up your build environment): | ||
12 | |||
13 | make rama/m10_b:default | ||
14 | |||
15 | See [build environment setup](https://docs.qmk.fm/build_environment_setup.html) then the [make instructions](https://docs.qmk.fm/make_instructions.html) for more information. \ No newline at end of file | ||
diff --git a/keyboards/rama/m10_b/rules.mk b/keyboards/rama/m10_b/rules.mk new file mode 100644 index 000000000..24df4632d --- /dev/null +++ b/keyboards/rama/m10_b/rules.mk | |||
@@ -0,0 +1,68 @@ | |||
1 | # MCU name | ||
2 | #MCU = at90usb1286 | ||
3 | MCU = atmega32u4 | ||
4 | |||
5 | # Processor frequency. | ||
6 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
7 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
8 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
9 | # automatically to create a 32-bit value in your source code. | ||
10 | # | ||
11 | # This will be an integer division of F_USB below, as it is sourced by | ||
12 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
13 | # does not *change* the processor frequency - it should merely be updated to | ||
14 | # reflect the processor speed set externally so that the code can use accurate | ||
15 | # software delays. | ||
16 | F_CPU = 16000000 | ||
17 | |||
18 | |||
19 | # | ||
20 | # LUFA specific | ||
21 | # | ||
22 | # Target architecture (see library "Board Types" documentation). | ||
23 | ARCH = AVR8 | ||
24 | |||
25 | # Input clock frequency. | ||
26 | # This will define a symbol, F_USB, in all source code files equal to the | ||
27 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
28 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
29 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
30 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
31 | # at the end, this will be done automatically to create a 32-bit value in your | ||
32 | # source code. | ||
33 | # | ||
34 | # If no clock division is performed on the input clock inside the AVR (via the | ||
35 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
36 | F_USB = $(F_CPU) | ||
37 | |||
38 | # Interrupt driven control endpoint task(+60) | ||
39 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
40 | |||
41 | |||
42 | # Boot Section Size in *bytes* | ||
43 | # Teensy halfKay 512 | ||
44 | # Teensy++ halfKay 1024 | ||
45 | # Atmel DFU loader 4096 | ||
46 | # LUFA bootloader 4096 | ||
47 | # USBaspLoader 2048 | ||
48 | OPT_DEFS += -DBOOTLOADER_SIZE=4096 | ||
49 | |||
50 | |||
51 | # Build Options | ||
52 | # change yes to no to disable | ||
53 | # | ||
54 | BOOTMAGIC_ENABLE ?= no # Virtual DIP switch configuration(+1000) | ||
55 | MOUSEKEY_ENABLE ?= yes # Mouse keys(+4700) | ||
56 | EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450) | ||
57 | CONSOLE_ENABLE ?= yes # Console for debug(+400) | ||
58 | COMMAND_ENABLE ?= yes # Commands for debug and configuration | ||
59 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
60 | SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend | ||
61 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
62 | NKRO_ENABLE ?= no # USB Nkey Rollover | ||
63 | BACKLIGHT_ENABLE ?= yes # Enable keyboard backlight functionality on B7 by default | ||
64 | MIDI_ENABLE ?= no # MIDI support (+2400 to 4200, depending on config) | ||
65 | UNICODE_ENABLE ?= no # Unicode | ||
66 | BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
67 | AUDIO_ENABLE ?= no # Audio output on port C6 | ||
68 | FAUXCLICKY_ENABLE ?= no # Use buzzer to emulate clicky switches | ||
diff --git a/keyboards/rama/m6_a/keymaps/default/readme.md b/keyboards/rama/m6_a/keymaps/default/readme.md index cfb90f650..c74b537a5 100644 --- a/keyboards/rama/m6_a/keymaps/default/readme.md +++ b/keyboards/rama/m6_a/keymaps/default/readme.md | |||
@@ -1,4 +1,4 @@ | |||
1 |  | 1 |  |
2 | 2 | ||
3 | # Default RAMA M6-A Layout | 3 | # Default RAMA M6-A Layout |
4 | 4 | ||