aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/toad/config.h54
-rw-r--r--keyboards/toad/keymaps/ansi_wk/keymap.c (renamed from keyboards/xmmx/keymaps/toad_ansi_wk/keymap.c)19
-rw-r--r--keyboards/toad/keymaps/ansi_wkl/keymap.c (renamed from keyboards/xmmx/keymaps/toad_ansi_wkl/keymap.c)21
-rw-r--r--keyboards/toad/keymaps/default/keymap.c (renamed from keyboards/xmmx/keymaps/toad/keymap.c)21
-rw-r--r--keyboards/toad/keymaps/iso_wk/keymap.c (renamed from keyboards/xmmx/keymaps/toad_iso_wk/keymap.c)21
-rw-r--r--keyboards/toad/keymaps/iso_wkl/keymap.c (renamed from keyboards/xmmx/keymaps/toad_iso_wkl/keymap.c)21
-rw-r--r--keyboards/toad/readme.md14
-rw-r--r--keyboards/toad/rules.mk56
-rw-r--r--keyboards/toad/toad.c18
-rw-r--r--keyboards/toad/toad.h91
-rw-r--r--keyboards/xmmx/keymaps/ansi_wk/keymap.c (renamed from keyboards/xmmx/keymaps/xmmx_ansi_wk/keymap.c)21
-rw-r--r--keyboards/xmmx/keymaps/ansi_wkl/keymap.c (renamed from keyboards/xmmx/keymaps/xmmx_ansi_wkl/keymap.c)21
-rw-r--r--keyboards/xmmx/keymaps/default/keymap.c21
-rw-r--r--keyboards/xmmx/keymaps/iso_wk/keymap.c (renamed from keyboards/xmmx/keymaps/xmmx_iso_wk/keymap.c)21
-rw-r--r--keyboards/xmmx/keymaps/iso_wkl/keymap.c (renamed from keyboards/xmmx/keymaps/xmmx_iso_wkl/keymap.c)21
-rw-r--r--keyboards/xmmx/readme.md8
-rw-r--r--keyboards/xmmx/xmmx.c17
-rw-r--r--keyboards/xmmx/xmmx.h96
18 files changed, 276 insertions, 286 deletions
diff --git a/keyboards/toad/config.h b/keyboards/toad/config.h
new file mode 100644
index 000000000..f1d32c15b
--- /dev/null
+++ b/keyboards/toad/config.h
@@ -0,0 +1,54 @@
1#ifndef CONFIG_H
2#define CONFIG_H
3
4#include "config_common.h"
5
6/* USB Device descriptor parameter */
7#define VENDOR_ID 0xFEED
8#define PRODUCT_ID 0x6776
9#define DEVICE_VER 0x0001
10#define MANUFACTURER farmakon
11#define PRODUCT "TOAD"
12#define DESCRIPTION "TOAD"
13
14/* key matrix size */
15#define MATRIX_ROWS 6
16#define MATRIX_COLS 14
17
18/* key matrix pins */
19#define MATRIX_ROW_PINS { B0, F6, F5, F4, F1, F0 }
20#define MATRIX_COL_PINS { B3, B2, B1, E6, B7, C7, C6, D4, D6, D7, B4, D0, D1, F7 }
21#define UNUSED_PINS
22
23/* COL2ROW or ROW2COL */
24#define DIODE_DIRECTION COL2ROW
25
26/* number of backlight levels */
27
28#ifdef BACKLIGHT_PIN
29#define BACKLIGHT_LEVELS 0
30#endif
31
32/* Set 0 if debouncing isn't needed */
33#define DEBOUNCING_DELAY 5
34
35/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
36#define LOCKING_SUPPORT_ENABLE
37
38/* Locking resynchronize hack */
39#define LOCKING_RESYNC_ENABLE
40
41/* key combination for command */
42#define IS_COMMAND() ( \
43 keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
44)
45
46#ifdef RGB_DI_PIN
47#define RGBLIGHT_ANIMATIONS
48#define RGBLED_NUM 0
49#define RGBLIGHT_HUE_STEP 8
50#define RGBLIGHT_SAT_STEP 8
51#define RGBLIGHT_VAL_STEP 8
52#endif
53
54#endif
diff --git a/keyboards/xmmx/keymaps/toad_ansi_wk/keymap.c b/keyboards/toad/keymaps/ansi_wk/keymap.c
index 5e61dfffb..a4fd348f0 100644
--- a/keyboards/xmmx/keymaps/toad_ansi_wk/keymap.c
+++ b/keyboards/toad/keymaps/ansi_wk/keymap.c
@@ -1,8 +1,8 @@
1#include "xmmx.h" 1#include QMK_KEYBOARD_H
2 2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4 4
5 TOAD_KEYMAP_ANSI_WK( 5 LAYOUT_ansi_wk(
6 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, \ 6 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, \
7 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,KC_MINS, KC_EQL, KC_BSPC, \ 7 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,KC_MINS, KC_EQL, KC_BSPC, \
8 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,KC_LBRC, KC_RBRC, KC_BSLS, \ 8 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,KC_LBRC, KC_RBRC, KC_BSLS, \
@@ -12,19 +12,4 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
12 ) 12 )
13}; 13};
14 14
15void led_set_user(uint8_t usb_led) {
16 15
17 //LED1
18 if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
19 DDRB |= (1 << 6); PORTB &= ~(1 << 6);
20 } else {
21 DDRB &= ~(1 << 6); PORTB &= ~(1 << 6);
22 }
23
24 //LED2
25 if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
26 DDRB |= (1 << 5); PORTB &= ~(1 << 5);
27 } else {
28 DDRB &= ~(1 << 5); PORTB &= ~(1 << 5);
29 }
30}
diff --git a/keyboards/xmmx/keymaps/toad_ansi_wkl/keymap.c b/keyboards/toad/keymaps/ansi_wkl/keymap.c
index 7778b0652..7fb6b3b59 100644
--- a/keyboards/xmmx/keymaps/toad_ansi_wkl/keymap.c
+++ b/keyboards/toad/keymaps/ansi_wkl/keymap.c
@@ -1,8 +1,8 @@
1#include "xmmx.h" 1#include QMK_KEYBOARD_H
2 2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4 4
5 TOAD_KEYMAP_ANSI_WKL( 5 LAYOUT_ansi_wkl(
6 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, \ 6 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, \
7 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,KC_MINS, KC_EQL, KC_BSPC, \ 7 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,KC_MINS, KC_EQL, KC_BSPC, \
8 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,KC_LBRC, KC_RBRC, KC_BSLS, \ 8 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,KC_LBRC, KC_RBRC, KC_BSLS, \
@@ -11,20 +11,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
11 KC_LCTL, KC_LALT, KC_SPC, KC_RALT, KC_RCTL 11 KC_LCTL, KC_LALT, KC_SPC, KC_RALT, KC_RCTL
12 ) 12 )
13}; 13};
14
15void led_set_user(uint8_t usb_led) {
16
17 //LED1
18 if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
19 DDRB |= (1 << 6); PORTB &= ~(1 << 6);
20 } else {
21 DDRB &= ~(1 << 6); PORTB &= ~(1 << 6);
22 }
23
24 //LED2
25 if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
26 DDRB |= (1 << 5); PORTB &= ~(1 << 5);
27 } else {
28 DDRB &= ~(1 << 5); PORTB &= ~(1 << 5);
29 }
30}
diff --git a/keyboards/xmmx/keymaps/toad/keymap.c b/keyboards/toad/keymaps/default/keymap.c
index c13dc8f67..4c30bdc44 100644
--- a/keyboards/xmmx/keymaps/toad/keymap.c
+++ b/keyboards/toad/keymaps/default/keymap.c
@@ -1,8 +1,8 @@
1#include "xmmx.h" 1#include QMK_KEYBOARD_H
2 2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4 4
5 TOAD_KEYMAP( 5 LAYOUT_all(
6 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, \ 6 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, \
7 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,KC_MINS, KC_EQL, KC_BSPC, KC_BSPC, \ 7 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,KC_MINS, KC_EQL, KC_BSPC, KC_BSPC, \
8 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, \ 8 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, \
@@ -11,20 +11,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
11 KC_LCTL,KC_LGUI,KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_APP, KC_RCTL 11 KC_LCTL,KC_LGUI,KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_APP, KC_RCTL
12 ) 12 )
13}; 13};
14
15void led_set_user(uint8_t usb_led) {
16
17 //LED1
18 if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
19 DDRB |= (1 << 6); PORTB &= ~(1 << 6);
20 } else {
21 DDRB &= ~(1 << 6); PORTB &= ~(1 << 6);
22 }
23
24 //LED2
25 if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
26 DDRB |= (1 << 5); PORTB &= ~(1 << 5);
27 } else {
28 DDRB &= ~(1 << 5); PORTB &= ~(1 << 5);
29 }
30}
diff --git a/keyboards/xmmx/keymaps/toad_iso_wk/keymap.c b/keyboards/toad/keymaps/iso_wk/keymap.c
index c51ff862a..202550432 100644
--- a/keyboards/xmmx/keymaps/toad_iso_wk/keymap.c
+++ b/keyboards/toad/keymaps/iso_wk/keymap.c
@@ -1,8 +1,8 @@
1#include "xmmx.h" 1#include QMK_KEYBOARD_H
2 2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4 4
5 TOAD_KEYMAP_ISO_WK( 5 LAYOUT_iso_wk(
6 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, \ 6 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, \
7 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,KC_MINS, KC_EQL, KC_BSPC, \ 7 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,KC_MINS, KC_EQL, KC_BSPC, \
8 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,KC_LBRC, KC_RBRC, \ 8 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,KC_LBRC, KC_RBRC, \
@@ -11,20 +11,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
11 KC_LCTL,KC_LGUI,KC_LALT, KC_SPC, KC_RALT,KC_RGUI, KC_APP,KC_RCTL 11 KC_LCTL,KC_LGUI,KC_LALT, KC_SPC, KC_RALT,KC_RGUI, KC_APP,KC_RCTL
12 ) 12 )
13}; 13};
14
15void led_set_user(uint8_t usb_led) {
16
17 //LED1
18 if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
19 DDRB |= (1 << 6); PORTB &= ~(1 << 6);
20 } else {
21 DDRB &= ~(1 << 6); PORTB &= ~(1 << 6);
22 }
23
24 //LED2
25 if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
26 DDRB |= (1 << 5); PORTB &= ~(1 << 5);
27 } else {
28 DDRB &= ~(1 << 5); PORTB &= ~(1 << 5);
29 }
30}
diff --git a/keyboards/xmmx/keymaps/toad_iso_wkl/keymap.c b/keyboards/toad/keymaps/iso_wkl/keymap.c
index efcebc713..1659d7b38 100644
--- a/keyboards/xmmx/keymaps/toad_iso_wkl/keymap.c
+++ b/keyboards/toad/keymaps/iso_wkl/keymap.c
@@ -1,8 +1,8 @@
1#include "xmmx.h" 1#include QMK_KEYBOARD_H
2 2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4 4
5 TOAD_KEYMAP_ISO_WKL( 5 LAYOUT_iso_wkl(
6 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, \ 6 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, \
7 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,KC_MINS, KC_EQL, KC_BSPC, \ 7 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,KC_MINS, KC_EQL, KC_BSPC, \
8 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,KC_LBRC, KC_RBRC, \ 8 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,KC_LBRC, KC_RBRC, \
@@ -11,20 +11,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
11 KC_LCTL, KC_LALT, KC_SPC, KC_RALT, KC_RCTL 11 KC_LCTL, KC_LALT, KC_SPC, KC_RALT, KC_RCTL
12 ) 12 )
13}; 13};
14
15void led_set_user(uint8_t usb_led) {
16
17 //LED1
18 if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
19 DDRB |= (1 << 6); PORTB &= ~(1 << 6);
20 } else {
21 DDRB &= ~(1 << 6); PORTB &= ~(1 << 6);
22 }
23
24 //LED2
25 if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
26 DDRB |= (1 << 5); PORTB &= ~(1 << 5);
27 } else {
28 DDRB &= ~(1 << 5); PORTB &= ~(1 << 5);
29 }
30}
diff --git a/keyboards/toad/readme.md b/keyboards/toad/readme.md
new file mode 100644
index 000000000..3f3bff5b5
--- /dev/null
+++ b/keyboards/toad/readme.md
@@ -0,0 +1,14 @@
1# Toad
2
3Toad: 70% Mechanical Keyboard PCB.
4
5Toad schematic and PCB are available opensource under Creative Commons BY-SA 3.0 license on EasyEDA at [this link](https://easyeda.com/farmakon/70_Keyboard-d4f6baf4792d4ada9c0571fa3713e461)
6
7For more informations on the Toad please visit this [geekhack.org thread](https://geekhack.org/index.php?topic=91388.0)
8
9Make examples for these keyboards (after setting up your build environment):
10
11 make toad:default
12
13
14See [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.
diff --git a/keyboards/toad/rules.mk b/keyboards/toad/rules.mk
new file mode 100644
index 000000000..ee87c6e8d
--- /dev/null
+++ b/keyboards/toad/rules.mk
@@ -0,0 +1,56 @@
1# MCU name
2MCU = atmega32u4
3
4# Processor frequency.
5# This will define a symbol, F_CPU, in all source code files equal to the
6# processor frequency in Hz. You can then use this symbol in your source code to
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
8# automatically to create a 32-bit value in your source code.
9#
10# This will be an integer division of F_USB below, as it is sourced by
11# F_USB after it has run through any CPU prescalers. Note that this value
12# does not *change* the processor frequency - it should merely be updated to
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
17#
18# LUFA specific
19#
20# Target architecture (see library "Board Types" documentation).
21ARCH = AVR8
22
23# Input clock frequency.
24# This will define a symbol, F_USB, in all source code files equal to the
25# input clock frequency (before any prescaling is performed) in Hz. This value may
26# differ from F_CPU if prescaling is used on the latter, and is required as the
27# raw input clock is fed directly to the PLL sections of the AVR for high speed
28# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
29# at the end, this will be done automatically to create a 32-bit value in your
30# source code.
31#
32# If no clock division is performed on the input clock inside the AVR (via the
33# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
34F_USB = $(F_CPU)
35
36# Interrupt driven control endpoint task(+60)
37OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
38
39
40# Boot Section Size in *bytes*
41OPT_DEFS += -DBOOTLOADER_SIZE=4096
42
43
44# Build Options
45# comment out to disable the options.
46#
47BOOTMAGIC_ENABLE ?= no # Virtual DIP switch configuration(+1000)
48MOUSEKEY_ENABLE ?= no # Mouse keys(+4700)
49EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450)
50CONSOLE_ENABLE ?= no # Console for debug(+400)
51COMMAND_ENABLE ?= no # Commands for debug and configuration
52SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend
53NKRO_ENABLE ?= yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
54BACKLIGHT_ENABLE ?= no # Enable keyboard backlight functionality
55AUDIO_ENABLE ?= no
56RGBLIGHT_ENABLE ?= no \ No newline at end of file
diff --git a/keyboards/toad/toad.c b/keyboards/toad/toad.c
new file mode 100644
index 000000000..bc4db0339
--- /dev/null
+++ b/keyboards/toad/toad.c
@@ -0,0 +1,18 @@
1#include "toad.h"
2
3void led_set_user(uint8_t usb_led) {
4
5 //LED1
6 if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
7 DDRB |= (1 << 6); PORTB &= ~(1 << 6);
8 } else {
9 DDRB &= ~(1 << 6); PORTB &= ~(1 << 6);
10 }
11
12 //LED2
13 if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
14 DDRB |= (1 << 5); PORTB &= ~(1 << 5);
15 } else {
16 DDRB &= ~(1 << 5); PORTB &= ~(1 << 5);
17 }
18}
diff --git a/keyboards/toad/toad.h b/keyboards/toad/toad.h
new file mode 100644
index 000000000..154068e42
--- /dev/null
+++ b/keyboards/toad/toad.h
@@ -0,0 +1,91 @@
1#ifndef TOAD
2#define TOAD
3
4#include "quantum.h"
5
6// 70% keyboard: default - all keys
7#define LAYOUT_all( \
8 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, \
9 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K013, \
10 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, \
11 K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, \
12 K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, K413, \
13 K500, K501, K502, K507, K510, K511, K512, K513 \
14) { \
15 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013 }, \
16 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113 }, \
17 { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213 }, \
18 { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313 }, \
19 { K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, K413 }, \
20 { K500, K501, K502, KC_NO,KC_NO,KC_NO,KC_NO,K507, KC_NO,KC_NO,K510, K511, K512, K513 } \
21}
22
23// 70% keyboard: ANSI Winkey
24#define LAYOUT_ansi_wk( \
25 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, \
26 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K013, \
27 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, \
28 K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K313, \
29 K400, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, \
30 K500, K501, K502, K507, K510, K511, K512, K513 \
31) { \
32 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013 }, \
33 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, KC_NO}, \
34 { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213 }, \
35 { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, KC_NO,K313 }, \
36 { K400, KC_NO,K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, KC_NO}, \
37 { K500, K501, K502, KC_NO,KC_NO,KC_NO,KC_NO,K507, KC_NO,KC_NO,K510, K511, K512, K513 } \
38}
39
40// 70% keyboard: ANSI Winkeyless
41#define LAYOUT_ansi_wkl( \
42 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, \
43 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K013, \
44 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, \
45 K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K313, \
46 K400, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, \
47 K500, K502, K507, K511, K513 \
48) { \
49 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013 }, \
50 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, KC_NO}, \
51 { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213 }, \
52 { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, KC_NO,K313 }, \
53 { K400, KC_NO,K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, KC_NO}, \
54 { K500, KC_NO,K502, KC_NO,KC_NO,KC_NO,KC_NO,K507, KC_NO,KC_NO,KC_NO,K511, KC_NO,K513 } \
55}
56
57// 70% keyboard: ISO Winkey
58#define LAYOUT_iso_wk( \
59 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, \
60 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K013, \
61 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, \
62 K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, \
63 K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, \
64 K500, K501, K502, K507, K510, K511, K512, K513 \
65) { \
66 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013 }, \
67 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, KC_NO}, \
68 { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, KC_NO}, \
69 { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313 }, \
70 { K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, KC_NO}, \
71 { K500, K501, K502, KC_NO,KC_NO,KC_NO,KC_NO,K507, KC_NO,KC_NO,K510, K511, K512, K513 } \
72}
73
74// 70% keyboard: ISO Winkeyless
75#define LAYOUT_iso_wkl( \
76 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, \
77 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K013, \
78 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, \
79 K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, \
80 K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, \
81 K500, K502, K507, K511, K513 \
82) { \
83 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013 }, \
84 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, KC_NO}, \
85 { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, KC_NO}, \
86 { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313 }, \
87 { K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, KC_NO}, \
88 { K500, KC_NO,K502, KC_NO,KC_NO,KC_NO,KC_NO,K507, KC_NO,KC_NO,KC_NO,K511, KC_NO,K513 } \
89}
90
91#endif
diff --git a/keyboards/xmmx/keymaps/xmmx_ansi_wk/keymap.c b/keyboards/xmmx/keymaps/ansi_wk/keymap.c
index 20d55c1fd..abdba99ba 100644
--- a/keyboards/xmmx/keymaps/xmmx_ansi_wk/keymap.c
+++ b/keyboards/xmmx/keymaps/ansi_wk/keymap.c
@@ -1,8 +1,8 @@
1#include "xmmx.h" 1#include QMK_KEYBOARD_H
2 2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4 4
5 KEYMAP_ANSI_WK( 5 LAYOUT_ansi_wk(
6 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_PAUS, \ 6 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_PAUS, \
7 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,KC_MINS, KC_EQL, KC_BSPC, KC_INS,KC_HOME, KC_PGUP, \ 7 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,KC_MINS, KC_EQL, KC_BSPC, KC_INS,KC_HOME, KC_PGUP, \
8 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN, \ 8 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN, \
@@ -11,20 +11,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
11 KC_LCTL,KC_LGUI,KC_LALT, KC_SPC, KC_RALT,KC_RGUI, KC_APP,KC_RCTL, KC_LEFT,KC_DOWN,KC_RGHT 11 KC_LCTL,KC_LGUI,KC_LALT, KC_SPC, KC_RALT,KC_RGUI, KC_APP,KC_RCTL, KC_LEFT,KC_DOWN,KC_RGHT
12 ) 12 )
13}; 13};
14
15void led_set_user(uint8_t usb_led) {
16
17 //LED1
18 if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
19 DDRB |= (1 << 6); PORTB &= ~(1 << 6);
20 } else {
21 DDRB &= ~(1 << 6); PORTB &= ~(1 << 6);
22 }
23
24 //LED2
25 if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
26 DDRB |= (1 << 5); PORTB &= ~(1 << 5);
27 } else {
28 DDRB &= ~(1 << 5); PORTB &= ~(1 << 5);
29 }
30}
diff --git a/keyboards/xmmx/keymaps/xmmx_ansi_wkl/keymap.c b/keyboards/xmmx/keymaps/ansi_wkl/keymap.c
index 3c8ba436f..aeb61ff2c 100644
--- a/keyboards/xmmx/keymaps/xmmx_ansi_wkl/keymap.c
+++ b/keyboards/xmmx/keymaps/ansi_wkl/keymap.c
@@ -1,8 +1,8 @@
1#include "xmmx.h" 1#include QMK_KEYBOARD_H
2 2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4 4
5 KEYMAP_ANSI_WKL( 5 LAYOUT_ansi_wkl(
6 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_PAUS, \ 6 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_PAUS, \
7 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,KC_MINS, KC_EQL, KC_BSPC, KC_INS,KC_HOME, KC_PGUP, \ 7 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,KC_MINS, KC_EQL, KC_BSPC, KC_INS,KC_HOME, KC_PGUP, \
8 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN, \ 8 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN, \
@@ -11,20 +11,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
11 KC_LCTL, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT,KC_DOWN,KC_RGHT 11 KC_LCTL, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT,KC_DOWN,KC_RGHT
12 ) 12 )
13}; 13};
14
15void led_set_user(uint8_t usb_led) {
16
17 //LED1
18 if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
19 DDRB |= (1 << 6); PORTB &= ~(1 << 6);
20 } else {
21 DDRB &= ~(1 << 6); PORTB &= ~(1 << 6);
22 }
23
24 //LED2
25 if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
26 DDRB |= (1 << 5); PORTB &= ~(1 << 5);
27 } else {
28 DDRB &= ~(1 << 5); PORTB &= ~(1 << 5);
29 }
30}
diff --git a/keyboards/xmmx/keymaps/default/keymap.c b/keyboards/xmmx/keymaps/default/keymap.c
index 6b0a11432..a7522fe25 100644
--- a/keyboards/xmmx/keymaps/default/keymap.c
+++ b/keyboards/xmmx/keymaps/default/keymap.c
@@ -1,8 +1,8 @@
1#include "xmmx.h" 1#include QMK_KEYBOARD_H
2 2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4 4
5 KEYMAP( 5 LAYOUT_all(
6 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_PAUS, \ 6 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_PAUS, \
7 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,KC_MINS, KC_EQL, KC_BSPC, KC_BSPC, KC_INS,KC_HOME, KC_PGUP, \ 7 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,KC_MINS, KC_EQL, KC_BSPC, KC_BSPC, KC_INS,KC_HOME, KC_PGUP, \
8 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN, \ 8 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN, \
@@ -11,20 +11,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
11 KC_LCTL,KC_LGUI,KC_LALT, KC_SPC, KC_RALT,KC_RGUI, KC_APP,KC_RCTL, KC_LEFT,KC_DOWN,KC_RGHT 11 KC_LCTL,KC_LGUI,KC_LALT, KC_SPC, KC_RALT,KC_RGUI, KC_APP,KC_RCTL, KC_LEFT,KC_DOWN,KC_RGHT
12 ) 12 )
13}; 13};
14
15void led_set_user(uint8_t usb_led) {
16
17 //LED1
18 if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
19 DDRB |= (1 << 6); PORTB &= ~(1 << 6);
20 } else {
21 DDRB &= ~(1 << 6); PORTB &= ~(1 << 6);
22 }
23
24 //LED2
25 if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
26 DDRB |= (1 << 5); PORTB &= ~(1 << 5);
27 } else {
28 DDRB &= ~(1 << 5); PORTB &= ~(1 << 5);
29 }
30}
diff --git a/keyboards/xmmx/keymaps/xmmx_iso_wk/keymap.c b/keyboards/xmmx/keymaps/iso_wk/keymap.c
index ee68253c7..882cb224a 100644
--- a/keyboards/xmmx/keymaps/xmmx_iso_wk/keymap.c
+++ b/keyboards/xmmx/keymaps/iso_wk/keymap.c
@@ -1,8 +1,8 @@
1#include "xmmx.h" 1#include QMK_KEYBOARD_H
2 2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4 4
5 KEYMAP_ISO_WK( 5 LAYOUT_iso_wk(
6 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_PAUS, \ 6 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_PAUS, \
7 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,KC_MINS, KC_EQL, KC_BSPC, KC_INS,KC_HOME, KC_PGUP, \ 7 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,KC_MINS, KC_EQL, KC_BSPC, KC_INS,KC_HOME, KC_PGUP, \
8 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,KC_LBRC, KC_RBRC, KC_DEL, KC_END, KC_PGDN, \ 8 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,KC_LBRC, KC_RBRC, KC_DEL, KC_END, KC_PGDN, \
@@ -11,20 +11,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
11 KC_LCTL,KC_LGUI,KC_LALT, KC_SPC, KC_RALT,KC_RGUI, KC_APP,KC_RCTL, KC_LEFT,KC_DOWN,KC_RGHT 11 KC_LCTL,KC_LGUI,KC_LALT, KC_SPC, KC_RALT,KC_RGUI, KC_APP,KC_RCTL, KC_LEFT,KC_DOWN,KC_RGHT
12 ) 12 )
13}; 13};
14
15void led_set_user(uint8_t usb_led) {
16
17 //LED1
18 if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
19 DDRB |= (1 << 6); PORTB &= ~(1 << 6);
20 } else {
21 DDRB &= ~(1 << 6); PORTB &= ~(1 << 6);
22 }
23
24 //LED2
25 if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
26 DDRB |= (1 << 5); PORTB &= ~(1 << 5);
27 } else {
28 DDRB &= ~(1 << 5); PORTB &= ~(1 << 5);
29 }
30}
diff --git a/keyboards/xmmx/keymaps/xmmx_iso_wkl/keymap.c b/keyboards/xmmx/keymaps/iso_wkl/keymap.c
index c27914e45..18ba79e1f 100644
--- a/keyboards/xmmx/keymaps/xmmx_iso_wkl/keymap.c
+++ b/keyboards/xmmx/keymaps/iso_wkl/keymap.c
@@ -1,8 +1,8 @@
1#include "xmmx.h" 1#include QMK_KEYBOARD_H
2 2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4 4
5 KEYMAP_ISO_WKL( 5 LAYOUT_iso_wkl(
6 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_PAUS, \ 6 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_PAUS, \
7 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,KC_MINS, KC_EQL, KC_BSPC, KC_INS,KC_HOME, KC_PGUP, \ 7 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,KC_MINS, KC_EQL, KC_BSPC, KC_INS,KC_HOME, KC_PGUP, \
8 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,KC_LBRC, KC_RBRC, KC_DEL, KC_END, KC_PGDN, \ 8 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,KC_LBRC, KC_RBRC, KC_DEL, KC_END, KC_PGDN, \
@@ -11,20 +11,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
11 KC_LCTL, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT,KC_DOWN,KC_RGHT 11 KC_LCTL, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT,KC_DOWN,KC_RGHT
12 ) 12 )
13}; 13};
14
15void led_set_user(uint8_t usb_led) {
16
17 //LED1
18 if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
19 DDRB |= (1 << 6); PORTB &= ~(1 << 6);
20 } else {
21 DDRB &= ~(1 << 6); PORTB &= ~(1 << 6);
22 }
23
24 //LED2
25 if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
26 DDRB |= (1 << 5); PORTB &= ~(1 << 5);
27 } else {
28 DDRB &= ~(1 << 5); PORTB &= ~(1 << 5);
29 }
30}
diff --git a/keyboards/xmmx/readme.md b/keyboards/xmmx/readme.md
index cf16231e1..8f94df4b9 100644
--- a/keyboards/xmmx/readme.md
+++ b/keyboards/xmmx/readme.md
@@ -1,20 +1,14 @@
1XMMX and Toad 1# XMMX
2========
3 2
4XMMX: Tenkeyless Mechanical Keyboard PCB designed to fit Filco Majestouch TKL and Cooler Master Quickfire Rapid cases 3XMMX: Tenkeyless Mechanical Keyboard PCB designed to fit Filco Majestouch TKL and Cooler Master Quickfire Rapid cases
5Toad: 70% Mechanical Keyboard PCB.
6 4
7XMMX schematic and PCB are available opensource under Creative Commons BY-SA 3.0 license on EasyEDA at [this link](https://easyeda.com/farmakon/XMMX-0447d28c1e4644b88fd04905d983684d) 5XMMX schematic and PCB are available opensource under Creative Commons BY-SA 3.0 license on EasyEDA at [this link](https://easyeda.com/farmakon/XMMX-0447d28c1e4644b88fd04905d983684d)
8Toad schematic and PCB are available opensource under Creative Commons BY-SA 3.0 license on EasyEDA at [this link](https://easyeda.com/farmakon/70_Keyboard-d4f6baf4792d4ada9c0571fa3713e461)
9 6
10For more informations on the XMMX please visit this [geekhack.org thread](https://geekhack.org/index.php?topic=93422.0) 7For more informations on the XMMX please visit this [geekhack.org thread](https://geekhack.org/index.php?topic=93422.0)
11For more informations on the Toad please visit this [geekhack.org thread](https://geekhack.org/index.php?topic=91388.0)
12 8
13Make examples for these keyboards (after setting up your build environment): 9Make examples for these keyboards (after setting up your build environment):
14 10
15 make xmmx:default 11 make xmmx:default
16 12
17 make xmmx:toad
18
19 13
20See [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. 14See [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.
diff --git a/keyboards/xmmx/xmmx.c b/keyboards/xmmx/xmmx.c
index 399ae4eb4..4d410e90a 100644
--- a/keyboards/xmmx/xmmx.c
+++ b/keyboards/xmmx/xmmx.c
@@ -1 +1,18 @@
1#include "xmmx.h" 1#include "xmmx.h"
2
3void led_set_user(uint8_t usb_led) {
4
5 //LED1
6 if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
7 DDRB |= (1 << 6); PORTB &= ~(1 << 6);
8 } else {
9 DDRB &= ~(1 << 6); PORTB &= ~(1 << 6);
10 }
11
12 //LED2
13 if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
14 DDRB |= (1 << 5); PORTB &= ~(1 << 5);
15 } else {
16 DDRB &= ~(1 << 5); PORTB &= ~(1 << 5);
17 }
18}
diff --git a/keyboards/xmmx/xmmx.h b/keyboards/xmmx/xmmx.h
index ad6ae3014..22d0f1480 100644
--- a/keyboards/xmmx/xmmx.h
+++ b/keyboards/xmmx/xmmx.h
@@ -4,7 +4,7 @@
4#include "quantum.h" 4#include "quantum.h"
5 5
6// 80% keyboard: default - all keys 6// 80% keyboard: default - all keys
7#define KEYMAP( \ 7#define LAYOUT_all( \
8 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K014, K015, K016, \ 8 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K014, K015, K016, \
9 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K013, K114, K115, K116, \ 9 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K013, K114, K115, K116, \
10 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, K216, \ 10 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, K216, \
@@ -21,7 +21,7 @@
21} 21}
22 22
23// 80% keyboard: ANSI Winkey 23// 80% keyboard: ANSI Winkey
24#define KEYMAP_ANSI_WK( \ 24#define LAYOUT_ansi_wk( \
25 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K014, K015, K016, \ 25 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K014, K015, K016, \
26 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, \ 26 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, \
27 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, K216, \ 27 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, K216, \
@@ -38,7 +38,7 @@
38} 38}
39 39
40// 80% keyboard: ANSI Winkeyless 40// 80% keyboard: ANSI Winkeyless
41#define KEYMAP_ANSI_WKL( \ 41#define LAYOUT_ansi_wkl( \
42 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K014, K015, K016, \ 42 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K014, K015, K016, \
43 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, \ 43 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, \
44 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, K216, \ 44 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, K216, \
@@ -55,7 +55,7 @@
55} 55}
56 56
57// 80% keyboard: ISO Winkey 57// 80% keyboard: ISO Winkey
58#define KEYMAP_ISO_WK( \ 58#define LAYOUT_iso_wk( \
59 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K014, K015, K016, \ 59 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K014, K015, K016, \
60 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, \ 60 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, \
61 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K214, K215, K216, \ 61 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K214, K215, K216, \
@@ -72,7 +72,7 @@
72} 72}
73 73
74// 80% keyboard: ISO Winkeyless 74// 80% keyboard: ISO Winkeyless
75#define KEYMAP_ISO_WKL( \ 75#define LAYOUT_iso_wkl( \
76 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K014, K015, K016, \ 76 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K014, K015, K016, \
77 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, \ 77 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, \
78 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K214, K215, K216, \ 78 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K214, K215, K216, \
@@ -88,90 +88,4 @@
88 { K500, KC_NO,K502, KC_NO,KC_NO,KC_NO,KC_NO,K507, KC_NO,KC_NO,KC_NO,K511, KC_NO,K513, K514, K515, K516 } \ 88 { K500, KC_NO,K502, KC_NO,KC_NO,KC_NO,KC_NO,K507, KC_NO,KC_NO,KC_NO,K511, KC_NO,K513, K514, K515, K516 } \
89} 89}
90 90
91
92// 70% keyboard: default - all keys
93#define TOAD_KEYMAP( \
94 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, \
95 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K013, \
96 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, \
97 K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, \
98 K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, K413, \
99 K500, K501, K502, K507, K510, K511, K512, K513 \
100) { \
101 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013 }, \
102 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113 }, \
103 { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213 }, \
104 { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313 }, \
105 { K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, K413 }, \
106 { K500, K501, K502, KC_NO,KC_NO,KC_NO,KC_NO,K507, KC_NO,KC_NO,K510, K511, K512, K513 } \
107}
108
109// 70% keyboard: ANSI Winkey
110#define TOAD_KEYMAP_ANSI_WK( \
111 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, \
112 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K013, \
113 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, \
114 K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K313, \
115 K400, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, \
116 K500, K501, K502, K507, K510, K511, K512, K513 \
117) { \
118 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013 }, \
119 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, KC_NO}, \
120 { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213 }, \
121 { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, KC_NO,K313 }, \
122 { K400, KC_NO,K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, KC_NO}, \
123 { K500, K501, K502, KC_NO,KC_NO,KC_NO,KC_NO,K507, KC_NO,KC_NO,K510, K511, K512, K513 } \
124}
125
126// 70% keyboard: ANSI Winkeyless
127#define TOAD_KEYMAP_ANSI_WKL( \
128 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, \
129 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K013, \
130 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, \
131 K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K313, \
132 K400, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, \
133 K500, K502, K507, K511, K513 \
134) { \
135 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013 }, \
136 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, KC_NO}, \
137 { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213 }, \
138 { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, KC_NO,K313 }, \
139 { K400, KC_NO,K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, KC_NO}, \
140 { K500, KC_NO,K502, KC_NO,KC_NO,KC_NO,KC_NO,K507, KC_NO,KC_NO,KC_NO,K511, KC_NO,K513 } \
141}
142
143// 70% keyboard: ISO Winkey
144#define TOAD_KEYMAP_ISO_WK( \
145 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, \
146 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K013, \
147 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, \
148 K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, \
149 K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, \
150 K500, K501, K502, K507, K510, K511, K512, K513 \
151) { \
152 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013 }, \
153 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, KC_NO}, \
154 { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, KC_NO}, \
155 { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313 }, \
156 { K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, KC_NO}, \
157 { K500, K501, K502, KC_NO,KC_NO,KC_NO,KC_NO,K507, KC_NO,KC_NO,K510, K511, K512, K513 } \
158}
159
160// 70% keyboard: ISO Winkeyless
161#define TOAD_KEYMAP_ISO_WKL( \
162 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, \
163 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K013, \
164 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, \
165 K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, \
166 K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, \
167 K500, K502, K507, K511, K513 \
168) { \
169 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013 }, \
170 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, KC_NO}, \
171 { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, KC_NO}, \
172 { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313 }, \
173 { K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, KC_NO}, \
174 { K500, KC_NO,K502, KC_NO,KC_NO,KC_NO,KC_NO,K507, KC_NO,KC_NO,KC_NO,K511, KC_NO,K513 } \
175}
176
177#endif 91#endif