aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/M10A/M10A.c5
-rw-r--r--keyboards/M10A/M10A.h19
-rw-r--r--keyboards/M10A/Makefile3
-rw-r--r--keyboards/M10A/config.h82
-rw-r--r--keyboards/M10A/keymaps/default/Makefile3
-rw-r--r--keyboards/M10A/keymaps/default/keymap.c49
-rw-r--r--keyboards/M10A/rules.mk68
-rw-r--r--keyboards/amjpad/keymaps/ortho_left/keymap.c65
-rw-r--r--keyboards/amjpad/keymaps/ortho_right/keymap.c65
9 files changed, 359 insertions, 0 deletions
diff --git a/keyboards/M10A/M10A.c b/keyboards/M10A/M10A.c
new file mode 100644
index 000000000..9a3bd15e1
--- /dev/null
+++ b/keyboards/M10A/M10A.c
@@ -0,0 +1,5 @@
1#include "M10A.h"
2
3void matrix_init_kb(void) {
4 matrix_init_user();
5} \ No newline at end of file
diff --git a/keyboards/M10A/M10A.h b/keyboards/M10A/M10A.h
new file mode 100644
index 000000000..6ec334fb3
--- /dev/null
+++ b/keyboards/M10A/M10A.h
@@ -0,0 +1,19 @@
1#ifndef M10A_H
2#define M10A_H
3
4#include "quantum.h"
5
6#define M10A( \
7 k00, k01, k02, \
8 k10, k11, k12, \
9 k20, k21, k22, \
10 k30, k31, k32 \
11) \
12{ \
13 { k00, k01, k02 }, \
14 { k10, k11, k12 }, \
15 { k20, k21, k22 }, \
16 { k30, k31, k32 } \
17}
18
19#endif
diff --git a/keyboards/M10A/Makefile b/keyboards/M10A/Makefile
new file mode 100644
index 000000000..4e2a6f00f
--- /dev/null
+++ b/keyboards/M10A/Makefile
@@ -0,0 +1,3 @@
1ifndef MAKEFILE_INCLUDED
2 include ../../Makefile
3endif \ No newline at end of file
diff --git a/keyboards/M10A/config.h b/keyboards/M10A/config.h
new file mode 100644
index 000000000..f052ab629
--- /dev/null
+++ b/keyboards/M10A/config.h
@@ -0,0 +1,82 @@
1/*
2Copyright 2012 Jun Wako <wakojun@gmail.com>
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along 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 0xFEED
25#define PRODUCT_ID 0x0007
26#define DEVICE_VER 0x0001
27#define MANUFACTURER Machine Industries
28#define PRODUCT M10-A
29#define DESCRIPTION RAMA x Machine Industries M10-A
30
31/* key matrix size */
32#define MATRIX_ROWS 4
33#define MATRIX_COLS 3
34
35/* Planck PCB default pin-out */
36#define MATRIX_ROW_PINS { B6, F7, F6, D6 }
37#define MATRIX_COL_PINS { F5, F1, F0 }
38#define UNUSED_PINS
39
40#define BACKLIGHT_PIN B7
41
42/* COL2ROW or ROW2COL */
43#define DIODE_DIRECTION ROW2COL
44
45/* define if matrix has ghost */
46//#define MATRIX_HAS_GHOST
47
48/* number of backlight levels */
49#define BACKLIGHT_LEVELS 6
50
51/* Set 0 if debouncing isn't needed */
52#define DEBOUNCING_DELAY 5
53
54/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
55#define LOCKING_SUPPORT_ENABLE
56/* Locking resynchronize hack */
57#define LOCKING_RESYNC_ENABLE
58
59/* key combination for command */
60#define IS_COMMAND() ( \
61 keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
62)
63
64/*
65 * Feature disable options
66 * These options are also useful to firmware size reduction.
67 */
68
69/* disable debug print */
70//#define NO_DEBUG
71
72/* disable print */
73//#define NO_PRINT
74
75/* disable action features */
76//#define NO_ACTION_LAYER
77//#define NO_ACTION_TAPPING
78//#define NO_ACTION_ONESHOT
79//#define NO_ACTION_MACRO
80//#define NO_ACTION_FUNCTION
81
82#endif
diff --git a/keyboards/M10A/keymaps/default/Makefile b/keyboards/M10A/keymaps/default/Makefile
new file mode 100644
index 000000000..457a3d01d
--- /dev/null
+++ b/keyboards/M10A/keymaps/default/Makefile
@@ -0,0 +1,3 @@
1ifndef QUANTUM_DIR
2 include ../../../../Makefile
3endif
diff --git a/keyboards/M10A/keymaps/default/keymap.c b/keyboards/M10A/keymaps/default/keymap.c
new file mode 100644
index 000000000..75abeb5b7
--- /dev/null
+++ b/keyboards/M10A/keymaps/default/keymap.c
@@ -0,0 +1,49 @@
1// This is the canonical layout file for the Quantum project. If you want to add another keyboard,
2// this is the style you want to emulate.
3
4#include "M10A.h"
5#include "action_layer.h"
6#include "eeconfig.h"
7
8extern keymap_config_t keymap_config;
9
10// Each layer gets a name for readability, which is then used in the keymap matrix below.
11// The underscores don't mean anything - you can have a layer called STUFF or any other name.
12// Layer names don't all need to be of the same length, obviously, and you can also skip them
13// entirely and just use numbers.
14
15enum layers {
16 _LAYER0,
17 _LAYER1,
18 _LAYER2,
19 _LAYER3,
20 _LAYER4,
21 _LAYER5,
22 _LAYER6,
23 _LAYER7,
24 _LAYER8,
25 _LAYER9
26};
27
28// // Fillers to make layering more clear
29// #define _______ KC_TRNS
30// #define XXXXXXX KC_NO
31
32const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
33 [_LAYER0] = {{KC_A, KC_B, KC_C}, {KC_D, KC_E, KC_F}, {KC_G, KC_H, KC_I}, {KC_NO, KC_NO, KC_J}},
34 [_LAYER1] = {{KC_A, KC_B, KC_C}, {KC_D, KC_E, KC_F}, {KC_G, KC_H, KC_I}, {KC_NO, KC_NO, KC_J}},
35 [_LAYER2] = {{KC_A, KC_B, KC_C}, {KC_D, KC_E, KC_F}, {KC_G, KC_H, KC_I}, {KC_NO, KC_NO, KC_J}},
36 [_LAYER3] = {{KC_A, KC_B, KC_C}, {KC_D, KC_E, KC_F}, {KC_G, KC_H, KC_I}, {KC_NO, KC_NO, KC_J}},
37 [_LAYER4] = {{KC_A, KC_B, KC_C}, {KC_D, KC_E, KC_F}, {KC_G, KC_H, KC_I}, {KC_NO, KC_NO, KC_J}},
38 [_LAYER5] = {{KC_A, KC_B, KC_C}, {KC_D, KC_E, KC_F}, {KC_G, KC_H, KC_I}, {KC_NO, KC_NO, KC_J}},
39 [_LAYER6] = {{KC_A, KC_B, KC_C}, {KC_D, KC_E, KC_F}, {KC_G, KC_H, KC_I}, {KC_NO, KC_NO, KC_J}},
40 [_LAYER7] = {{KC_A, KC_B, KC_C}, {KC_D, KC_E, KC_F}, {KC_G, KC_H, KC_I}, {KC_NO, KC_NO, KC_J}},
41 [_LAYER8] = {{KC_A, KC_B, KC_C}, {KC_D, KC_E, KC_F}, {KC_G, KC_H, KC_I}, {KC_NO, KC_NO, KC_J}},
42 [_LAYER9] = {{KC_A, KC_B, KC_C}, {KC_D, KC_E, KC_F}, {KC_G, KC_H, KC_I}, {KC_NO, KC_NO, KC_J}}
43};
44
45void matrix_init_user(void) {
46 #ifdef BACKLIGHT_ENABLE
47 backlight_level(0);
48 #endif
49}
diff --git a/keyboards/M10A/rules.mk b/keyboards/M10A/rules.mk
new file mode 100644
index 000000000..f5a785dbc
--- /dev/null
+++ b/keyboards/M10A/rules.mk
@@ -0,0 +1,68 @@
1# MCU name
2#MCU = at90usb1287
3MCU = 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.
16F_CPU = 16000000
17
18#
19# LUFA specific
20#
21# Target architecture (see library "Board Types" documentation).
22ARCH = AVR8
23
24# Input clock frequency.
25# This will define a symbol, F_USB, in all source code files equal to the
26# input clock frequency (before any prescaling is performed) in Hz. This value may
27# differ from F_CPU if prescaling is used on the latter, and is required as the
28# raw input clock is fed directly to the PLL sections of the AVR for high speed
29# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
30# at the end, this will be done automatically to create a 32-bit value in your
31# source code.
32#
33# If no clock division is performed on the input clock inside the AVR (via the
34# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
35F_USB = $(F_CPU)
36
37# Interrupt driven control endpoint task(+60)
38OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
39
40
41# Boot Section Size in *bytes*
42# Teensy halfKay 512
43# Teensy++ halfKay 1024
44# Atmel DFU loader 4096
45# LUFA bootloader 4096
46# USBaspLoader 2048
47OPT_DEFS += -DBOOTLOADER_SIZE=4096
48
49# Build Options
50# change to "no" to disable the options, or define them in the Makefile in
51# the appropriate keymap folder that will get included automatically
52#
53BOOTMAGIC_ENABLE ?= no # Virtual DIP switch configuration(+1000)
54MOUSEKEY_ENABLE ?= yes # Mouse keys(+4700)
55EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450)
56CONSOLE_ENABLE ?= no # Console for debug(+400)
57COMMAND_ENABLE ?= no # Commands for debug and configuration
58NKRO_ENABLE ?= yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
59BACKLIGHT_ENABLE ?= yes # Enable keyboard backlight functionality
60MIDI_ENABLE ?= no # MIDI controls
61AUDIO_ENABLE ?= no # Audio output on port C6
62UNICODE_ENABLE ?= yes # Unicode
63BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID
64RGBLIGHT_ENABLE ?= no # Enable WS2812 RGB underlight.
65API_SYSEX_ENABLE = yes
66
67# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
68SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend
diff --git a/keyboards/amjpad/keymaps/ortho_left/keymap.c b/keyboards/amjpad/keymaps/ortho_left/keymap.c
new file mode 100644
index 000000000..d3e4d9944
--- /dev/null
+++ b/keyboards/amjpad/keymaps/ortho_left/keymap.c
@@ -0,0 +1,65 @@
1#include "amjpad.h"
2
3#ifdef RGBLIGHT_ENABLE
4#include "rgblight.h"
5#endif
6
7// Each layer gets a name for readability, which is then used in the keymap matrix below.
8// The underscores don't mean anything - you can have a layer called STUFF or any other name.
9// Layer names don't all need to be of the same length, obviously, and you can also skip them
10// entirely and just use numbers.
11#define _BL 0
12#define _FL 1
13
14#define _______ KC_TRNS
15
16const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
17 /* Keymap _BL: (Base Layer) Default Layer
18 * ,-------------------.
19 * | T | G | B |Spac|
20 * |----|----|----|----|
21 * | R | F | V | Fn |
22 * |----|----|----|----|
23 * | E | D | C | OS |
24 * |----|----|----|----|
25 * | W | S | X | Alt|
26 * |----|----|----|----|
27 * | Q | A | Z | Ctl|
28 * |----|----|----|----|
29 * | Esc| Tab|Shft| Fn2|
30 * `-------------------'
31 */
32
33[_BL] = MAXKEYMAP(
34
35 KC_T, KC_G, KC_B, KC_SPACE,\
36 KC_R, KC_F, KC_V, MO(1), \
37 KC_E, KC_D, KC_C, KC_LGUI, \
38 KC_W, KC_S, KC_X, KC_LALT, \
39 KC_Q, KC_A, KC_Z, KC_LCTL, \
40 KC_TAB, KC_ESC, KC_LSHIFT, MO(1)),
41
42 /* Keymap _FL: Function Layer
43 * ,-------------------.
44 * | 5 | F5 | F11|Spac|
45 * |----|----|----|----|
46 * | 4 | F4 | F10| |
47 * |----|----|----|----|
48 * | 3 | F3 | F9 | OS |
49 * |----|----|----|----|
50 * | 2 | F2 | F8 | Alt|
51 * |----|----|----|----|
52 * | 1 | F1 | F7 | Ctl|
53 * |----|----|----|----|
54 * | ` | Del|Shft| |
55 * `-------------------'
56 */
57[_FL] = MAXKEYMAP(
58
59 KC_5, KC_F5, KC_F11, _______, \
60 KC_4, KC_F4, KC_F10, _______, \
61 KC_3, KC_F3, KC_F9, _______, \
62 KC_2, KC_F2, KC_F8, _______, \
63 KC_1, KC_F1, KC_F7, _______, \
64 KC_GRV,KC_DEL, _______, _______),
65};
diff --git a/keyboards/amjpad/keymaps/ortho_right/keymap.c b/keyboards/amjpad/keymaps/ortho_right/keymap.c
new file mode 100644
index 000000000..33e599abd
--- /dev/null
+++ b/keyboards/amjpad/keymaps/ortho_right/keymap.c
@@ -0,0 +1,65 @@
1#include "amjpad.h"
2
3#ifdef RGBLIGHT_ENABLE
4#include "rgblight.h"
5#endif
6
7// Each layer gets a name for readability, which is then used in the keymap matrix below.
8// The underscores don't mean anything - you can have a layer called STUFF or any other name.
9// Layer names don't all need to be of the same length, obviously, and you can also skip them
10// entirely and just use numbers.
11#define _BL 0
12#define _FL 1
13
14#define _______ KC_TRNS
15
16const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
17 /* Keymap _BL: (Base Layer) Default Layer
18 * ,-------------------.
19 * |Spac| N | H | Y |
20 * |----|----|----|----|
21 * | Fn | M | J | U |
22 * |----|----|----|----|
23 * |Left| , | K | I |
24 * |----|----|----|----|
25 * |Down| . | L | O |
26 * |----|----|----|----|
27 * | Up | / | ; | P |
28 * |----|----|----|----|
29 * |Rght| Ret| " |Bspc|
30 * `-------------------'
31 */
32
33[_BL] = MAXKEYMAP(
34
35 KC_SPACE, KC_N, KC_H, KC_Y, \
36 MO(1), KC_M, KC_J, KC_U, \
37 KC_LEFT, KC_COMM, KC_K, KC_I, \
38 KC_DOWN, KC_DOT, KC_L, KC_O, \
39 KC_UP, KC_SLASH, KC_SCLN, KC_P, \
40 KC_RIGHT, KC_ENT, KC_QUOT, KC_BSPC),
41
42 /* Keymap _FL: Function Layer
43 * ,-------------------.
44 * |Esc | F12| F6 | 6 |
45 * |----|----|----|----|
46 * | NL | M | - | 7 |
47 * |----|----|----|----|
48 * |Left| , | = | 8 |
49 * |----|----|----|----|
50 * |Down| . | [ | 9 |
51 * |----|----|----|----|
52 * | Up | / | ] | 0 |
53 * |----|----|----|----|
54 * |Rght| Ret| \ | Del|
55 * `-------------------'
56 */
57[_FL] = MAXKEYMAP(
58
59 _______, KC_F12, KC_F6, KC_6, \
60 _______, _______, KC_MINS, KC_7, \
61 _______, _______, KC_EQL, KC_8, \
62 _______, _______, KC_LBRC, KC_9, \
63 _______, _______, KC_RBRC, KC_0, \
64 _______, _______, KC_BSLS, KC_DEL),
65};