aboutsummaryrefslogtreecommitdiff
path: root/keyboards/toad
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/toad')
-rw-r--r--keyboards/toad/config.h54
-rw-r--r--keyboards/toad/keymaps/ansi_wk/keymap.c15
-rw-r--r--keyboards/toad/keymaps/ansi_wkl/keymap.c13
-rw-r--r--keyboards/toad/keymaps/default/keymap.c13
-rw-r--r--keyboards/toad/keymaps/iso_wk/keymap.c13
-rw-r--r--keyboards/toad/keymaps/iso_wkl/keymap.c13
-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
10 files changed, 300 insertions, 0 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/toad/keymaps/ansi_wk/keymap.c b/keyboards/toad/keymaps/ansi_wk/keymap.c
new file mode 100644
index 000000000..a4fd348f0
--- /dev/null
+++ b/keyboards/toad/keymaps/ansi_wk/keymap.c
@@ -0,0 +1,15 @@
1#include QMK_KEYBOARD_H
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4
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, \
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, \
9 KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,KC_QUOT, KC_ENT, \
10 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM,KC_DOT, KC_SLSH, KC_RSFT, \
11 KC_LCTL,KC_LGUI,KC_LALT, KC_SPC, KC_RALT,KC_RGUI, KC_APP,KC_RCTL
12 )
13};
14
15
diff --git a/keyboards/toad/keymaps/ansi_wkl/keymap.c b/keyboards/toad/keymaps/ansi_wkl/keymap.c
new file mode 100644
index 000000000..7fb6b3b59
--- /dev/null
+++ b/keyboards/toad/keymaps/ansi_wkl/keymap.c
@@ -0,0 +1,13 @@
1#include QMK_KEYBOARD_H
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4
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, \
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, \
9 KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,KC_QUOT, KC_ENT, \
10 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM,KC_DOT, KC_SLSH, KC_RSFT, \
11 KC_LCTL, KC_LALT, KC_SPC, KC_RALT, KC_RCTL
12 )
13};
diff --git a/keyboards/toad/keymaps/default/keymap.c b/keyboards/toad/keymaps/default/keymap.c
new file mode 100644
index 000000000..4c30bdc44
--- /dev/null
+++ b/keyboards/toad/keymaps/default/keymap.c
@@ -0,0 +1,13 @@
1#include QMK_KEYBOARD_H
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4
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, \
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, \
9 KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT, \
10 KC_LSFT,KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_RSFT, \
11 KC_LCTL,KC_LGUI,KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_APP, KC_RCTL
12 )
13};
diff --git a/keyboards/toad/keymaps/iso_wk/keymap.c b/keyboards/toad/keymaps/iso_wk/keymap.c
new file mode 100644
index 000000000..202550432
--- /dev/null
+++ b/keyboards/toad/keymaps/iso_wk/keymap.c
@@ -0,0 +1,13 @@
1#include QMK_KEYBOARD_H
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4
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, \
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, \
9 KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,KC_QUOT, KC_NUHS, KC_ENT, \
10 KC_LSFT, KC_NUBS,KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM,KC_DOT, KC_SLSH, KC_RSFT, \
11 KC_LCTL,KC_LGUI,KC_LALT, KC_SPC, KC_RALT,KC_RGUI, KC_APP,KC_RCTL
12 )
13};
diff --git a/keyboards/toad/keymaps/iso_wkl/keymap.c b/keyboards/toad/keymaps/iso_wkl/keymap.c
new file mode 100644
index 000000000..1659d7b38
--- /dev/null
+++ b/keyboards/toad/keymaps/iso_wkl/keymap.c
@@ -0,0 +1,13 @@
1#include QMK_KEYBOARD_H
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4
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, \
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, \
9 KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,KC_QUOT, KC_NUHS, KC_ENT, \
10 KC_LSFT, KC_NUBS,KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM,KC_DOT, KC_SLSH, KC_RSFT, \
11 KC_LCTL, KC_LALT, KC_SPC, KC_RALT, KC_RCTL
12 )
13};
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