aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/punk75/config.h72
-rw-r--r--keyboards/punk75/info.json92
-rw-r--r--keyboards/punk75/keymaps/default/config.h20
-rw-r--r--keyboards/punk75/keymaps/default/keymap.c95
-rw-r--r--keyboards/punk75/keymaps/default/readme.md1
-rw-r--r--keyboards/punk75/keymaps/dsanchezseco/config.h20
-rw-r--r--keyboards/punk75/keymaps/dsanchezseco/keymap.c85
-rw-r--r--keyboards/punk75/keymaps/dsanchezseco/readme.md1
-rw-r--r--keyboards/punk75/punk75.c32
-rw-r--r--keyboards/punk75/punk75.h43
-rw-r--r--keyboards/punk75/readme.md21
-rw-r--r--keyboards/punk75/rules.mk28
12 files changed, 510 insertions, 0 deletions
diff --git a/keyboards/punk75/config.h b/keyboards/punk75/config.h
new file mode 100644
index 000000000..76d620b22
--- /dev/null
+++ b/keyboards/punk75/config.h
@@ -0,0 +1,72 @@
1/*
2Copyright 2020 dsanchezseco
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#pragma once
19
20#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0xDEED
24#define PRODUCT_ID 0x0001
25#define DEVICE_VER 0x0001
26#define MANUFACTURER dsanchezseco
27#define PRODUCT punk75
28
29/* key matrix size */
30#define MATRIX_ROWS 5
31#define MATRIX_COLS 15
32
33/*
34 * Keyboard Matrix Assignments
35 *
36 * Change this to how you wired your keyboard
37 * COLS: AVR pins used for columns, left to right
38 * ROWS: AVR pins used for rows, top to bottom
39 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
40 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
41 *
42 */
43#define MATRIX_ROW_PINS { D6, D5, C1, C0, D7 }
44#define MATRIX_COL_PINS { C2, C3, C6, C5, C4, A7, A6, A5, A4, B4, A3, B3, A2, B2, A1 }
45#define LED A0
46
47#define ENCODERS_PAD_A { D0, B1}
48#define ENCODERS_PAD_B { D1, B0 }
49
50#define UNUSED_PINS { C7 }
51
52/* COL2ROW, ROW2COL*/
53#define DIODE_DIRECTION COL2ROW
54
55#define USB_MAX_POWER_CONSUMPTION 500
56
57/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
58#define DEBOUNCE 5
59
60/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
61#define LOCKING_SUPPORT_ENABLE
62/* Locking resynchronize hack */
63#define LOCKING_RESYNC_ENABLE
64
65/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
66 * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
67 */
68// #define GRAVE_ESC_CTRL_OVERRIDE
69
70/* disable these deprecated features by default */
71#define NO_ACTION_MACRO
72#define NO_ACTION_FUNCTION
diff --git a/keyboards/punk75/info.json b/keyboards/punk75/info.json
new file mode 100644
index 000000000..61af22431
--- /dev/null
+++ b/keyboards/punk75/info.json
@@ -0,0 +1,92 @@
1{
2 "keyboard_name": "punk75",
3 "url": "",
4 "maintainer": "dsanchezseco",
5 "width": 15,
6 "height": 5,
7 "layouts": {
8 "LAYOUT_ortho_5x15": {
9 "layout": [
10 {"x":0, "y":0},
11 {"x":1, "y":0},
12 {"x":2, "y":0},
13 {"x":3, "y":0},
14 {"x":4, "y":0},
15 {"x":5, "y":0},
16 {"x":6, "y":0},
17 {"x":7, "y":0},
18 {"x":8, "y":0},
19 {"x":9, "y":0},
20 {"x":10, "y":0},
21 {"x":11, "y":0},
22 {"x":12, "y":0},
23 {"x":13, "y":0},
24 {"x":14, "y":0},
25
26 {"x":0, "y":1},
27 {"x":1, "y":1},
28 {"x":2, "y":1},
29 {"x":3, "y":1},
30 {"x":4, "y":1},
31 {"x":5, "y":1},
32 {"x":6, "y":1},
33 {"x":7, "y":1},
34 {"x":8, "y":1},
35 {"x":9, "y":1},
36 {"x":10, "y":1},
37 {"x":11, "y":1},
38 {"x":12, "y":1},
39 {"x":13, "y":1},
40 {"x":14, "y":1},
41
42 {"x":0, "y":2},
43 {"x":1, "y":2},
44 {"x":2, "y":2},
45 {"x":3, "y":2},
46 {"x":4, "y":2},
47 {"x":5, "y":2},
48 {"x":6, "y":2},
49 {"x":7, "y":2},
50 {"x":8, "y":2},
51 {"x":9, "y":2},
52 {"x":10, "y":2},
53 {"x":11, "y":2},
54 {"x":12, "y":2},
55 {"x":13, "y":2},
56 {"x":14, "y":2},
57
58 {"x":0, "y":3},
59 {"x":1, "y":3},
60 {"x":2, "y":3},
61 {"x":3, "y":3},
62 {"x":4, "y":3},
63 {"x":5, "y":3},
64 {"x":6, "y":3},
65 {"x":7, "y":3},
66 {"x":8, "y":3},
67 {"x":9, "y":3},
68 {"x":10, "y":3},
69 {"x":11, "y":3},
70 {"x":12, "y":3},
71 {"x":13, "y":3},
72 {"x":14, "y":3},
73
74 {"x":0, "y":4},
75 {"x":1, "y":4},
76 {"x":2, "y":4},
77 {"x":3, "y":4},
78 {"x":4, "y":4},
79 {"x":5, "y":4},
80 {"x":6, "y":4},
81 {"x":7, "y":4},
82 {"x":8, "y":4},
83 {"x":9, "y":4},
84 {"x":10, "y":4},
85 {"x":11, "y":4},
86 {"x":12, "y":4},
87 {"x":13, "y":4},
88 {"x":14, "y":4}
89 ]
90 }
91 }
92}
diff --git a/keyboards/punk75/keymaps/default/config.h b/keyboards/punk75/keymaps/default/config.h
new file mode 100644
index 000000000..3c0a98d4c
--- /dev/null
+++ b/keyboards/punk75/keymaps/default/config.h
@@ -0,0 +1,20 @@
1/* Copyright 2020 dsanchezseco
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#pragma once
18
19// place overrides here
20#define TAP_CODE_DELAY 10
diff --git a/keyboards/punk75/keymaps/default/keymap.c b/keyboards/punk75/keymaps/default/keymap.c
new file mode 100644
index 000000000..fe4e87cce
--- /dev/null
+++ b/keyboards/punk75/keymaps/default/keymap.c
@@ -0,0 +1,95 @@
1/* Copyright 2020 dsanchezseco
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 QMK_KEYBOARD_H
17
18// Defines names for use in layer keycodes and the keymap
19enum layer_names {
20 _BASE,
21 _FN
22};
23
24const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
25/* QWERTY
26 * .--------------------------------------------------------------------------------------------------------------------------------------.
27 * | ESC | 1 | 2 | 3 | 4 | 5 | - | ` | = | 6 | 7 | 8 | 9 | 0 | BACKSP |
28 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------|
29 * | TAB | Q | W | E | R | T | [ | \ | ] | Y | U | I | O | P | ' |
30 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------+--------|
31 * | CAP LK | A | S | D | F | G | HOME | DEL | PG UP | H | J | K | L | ; | ENTER |
32 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------------------------+--------|
33 * | LSHIFT | Z | X | C | V | B | END | UP | PG DN | N | M | , | . | / | RSHIFT |
34 * |--------+--------+--------+--------+--------+-----------------+--------+--------+--------+--------+-----------------+--------+--------|
35 * | LCTRL | LGUI | LALT | FN | SPACE | SPACE | LEFT | DOWN | RIGHT | SPACE | SPACE | FN | RALT | RGUI | RCTRL |
36 * '--------------------------------------------------------------------------------------------------------------------------------------'
37 */
38
39 [_BASE] = LAYOUT_ortho_5x15( /* QWERTY */
40 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_MINS, KC_GRV, KC_EQL, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
41 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_LBRC, KC_BSLS, KC_RBRC, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_QUOT,
42 KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_HOME, KC_DEL, KC_PGUP, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT,
43 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_END, KC_UP, KC_PGDN, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
44 KC_LCTL, KC_LGUI, KC_LALT, MO(_FN), KC_SPC, KC_SPC, KC_LEFT, KC_DOWN, KC_RGHT, KC_SPC, KC_SPC, MO(_FN), KC_RALT, KC_RGUI, KC_RCTL
45 ),
46
47/* FUNCTION
48 * .--------------------------------------------------------------------------------------------------------------------------------------.
49 * | F1 | F2 | F3 | F4 | F5 | F6 | NUM LK | P/ | P* | F7 | F8 | F9 | F10 | F11 | F12 |
50 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
51 * | SELECT | CALC | MYCOMP | MAIL | RGB HD | RGB HI | P7 | P8 | P9 | - | | | PR SCR | SCR LK | PAUSE |
52 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
53 * | PREV | PLAY | NEXT | STOP | RGB SD | RGB SI | P4 | P5 | P6 | + | | RESET | | | |
54 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
55 * | VOL- | MUTE | VOL+ | APP | RGB VD | RGB VI | P1 | P2 | P3 | PENT | | | | | |
56 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
57 * | | | RGB TG | FN | RGB RMD| RGB MD | P0 | | P. | PENT | PENT | FN | | | |
58 * '--------------------------------------------------------------------------------------------------------------------------------------'
59 */
60
61 [_FN] = LAYOUT_ortho_5x15( /* FUNCTION */
62 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_NLCK, KC_SLSH, KC_ASTR, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
63 KC_MSEL, KC_CALC, KC_MYCM, KC_MAIL, RGB_HUD, RGB_HUI, KC_P7, KC_P8, KC_P9, KC_MINS, _______, _______, KC_PSCR, KC_SLCK, KC_PAUS,
64 KC_MPRV, KC_MPLY, KC_MNXT, KC_MSTP, RGB_SAD, RGB_SAI, KC_P4, KC_P5, KC_P6, KC_PLUS, _______, RESET, _______, _______, _______,
65 KC_VOLD, KC_MUTE, KC_VOLU, KC_APP, RGB_VAD, RGB_VAI, KC_P1, KC_P2, KC_P3, KC_PENT, _______, _______, _______, _______, _______,
66 _______, _______, RGB_TOG, MO(_FN), RGB_RMOD,RGB_MOD, KC_P0, _______, KC_PDOT, KC_PENT, KC_PENT, MO(_FN), _______, _______, _______
67 )
68};
69
70void led_keypress_update(pin_t led_pin, uint16_t keycode, keyrecord_t *record) {
71 // When a key is pressed turn on the LED, when released turn it off
72 writePin(led_pin, record->event.pressed);
73}
74
75bool process_record_user(uint16_t keycode, keyrecord_t *record) {
76 // Update LED state
77 led_keypress_update(LED, keycode, record);
78 return true;
79}
80
81void encoder_update_user(uint8_t index, bool clockwise) {
82 if (index == 0) { /* Encoder on the LEFT */
83 if (clockwise) {
84 tap_code(KC_VOLU);
85 } else {
86 tap_code(KC_VOLD);
87 }
88 } else if (index == 1) { /* Encoder on the RIGHT */
89 if (clockwise) {
90 tap_code(KC_VOLU);
91 } else {
92 tap_code(KC_VOLD);
93 }
94 }
95}
diff --git a/keyboards/punk75/keymaps/default/readme.md b/keyboards/punk75/keymaps/default/readme.md
new file mode 100644
index 000000000..963571e93
--- /dev/null
+++ b/keyboards/punk75/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default keymap for punk75
diff --git a/keyboards/punk75/keymaps/dsanchezseco/config.h b/keyboards/punk75/keymaps/dsanchezseco/config.h
new file mode 100644
index 000000000..3c0a98d4c
--- /dev/null
+++ b/keyboards/punk75/keymaps/dsanchezseco/config.h
@@ -0,0 +1,20 @@
1/* Copyright 2020 dsanchezseco
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#pragma once
18
19// place overrides here
20#define TAP_CODE_DELAY 10
diff --git a/keyboards/punk75/keymaps/dsanchezseco/keymap.c b/keyboards/punk75/keymaps/dsanchezseco/keymap.c
new file mode 100644
index 000000000..3c224b162
--- /dev/null
+++ b/keyboards/punk75/keymaps/dsanchezseco/keymap.c
@@ -0,0 +1,85 @@
1/* Copyright 2020 dsanchezseco
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 QMK_KEYBOARD_H
17
18#define ESC_CTL LCTL_T(KC_ESC)
19
20// Defines names for use in layer keycodes and the keymap
21enum layer_names {
22 _DVORAK,
23 _QWERTY,
24 _FN
25};
26
27const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
28
29 [_DVORAK] = LAYOUT_ortho_5x15( /* DVORAK */
30 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_GRV, KC_BSLS, KC_EQL, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MUTE,
31 KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_LBRC, KC_PSCR, KC_RBRC, KC_F, KC_G, KC_C, KC_R, KC_L, KC_SLSH,
32 ESC_CTL, KC_A, KC_O, KC_E, KC_U, KC_I, KC_HOME, KC_MNXT, KC_PGUP, KC_D, KC_H, KC_T, KC_N, KC_S, KC_MINS,
33 KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_END, KC_MPLY, KC_PGDN, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_SFTENT,
34 KC_LCTL, KC_LGUI, KC_LALT, _______, MO(_FN), KC_SPC, KC_SPC, KC_MPRV, KC_BSPC, KC_BSPC, MO(_FN), _______, KC_RALT, KC_RGUI, KC_RCTL
35 ),
36
37 [_QWERTY] = LAYOUT_ortho_5x15( /* QWERTY */
38 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_GRV, KC_BSLS, KC_EQL, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MUTE,
39 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_LBRC, KC_PSCR, KC_RBRC, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_SLSH,
40 ESC_CTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_HOME, KC_MNXT, KC_PGUP, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
41 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_END, KC_MPLY, KC_PGDN, KC_N, KC_M, KC_COMM, KC_DOT, KC_MINS, KC_SFTENT,
42 KC_LCTL, KC_LGUI, KC_LALT, _______, MO(_FN), KC_SPC, KC_SPC, KC_MPRV, KC_BSPC, KC_BSPC, MO(_FN), _______, KC_RALT, KC_RGUI, KC_RCTL
43 ),
44
45 [_FN] = LAYOUT_ortho_5x15( /* FUNCTION */
46 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, DF(_QWERTY), _______, DF(_DVORAK), KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
47 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_RIGHT, _______,
48 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_LEFT, _______, _______, _______, _______,
49 _______, _______, _______, KC_DOWN, KC_UP, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
50 _______, _______, _______, _______, MO(_FN), _______, _______, _______, KC_DEL, KC_DEL, MO(_FN), _______, _______, _______, _______
51 )
52
53};
54
55bool led_update_user(led_t led_state) {
56 // disable keyboard level handling
57 return false;
58}
59
60void led_keypress_update(pin_t led_pin, uint16_t keycode, keyrecord_t *record) {
61 // When a key is pressed turn on the LED, when released turn it off
62 writePin(led_pin, record->event.pressed);
63}
64
65bool process_record_user(uint16_t keycode, keyrecord_t *record) {
66 // Update LED state
67 led_keypress_update(LED, keycode, record);
68 return true;
69}
70
71void encoder_update_user(uint8_t index, bool clockwise) {
72 if (index == 0) { /* Encoder on the LEFT */
73 if (clockwise) {
74 tap_code(KC_VOLU);
75 } else {
76 tap_code(KC_VOLD);
77 }
78 } else if (index == 1) { /* Encoder on the RIGHT */
79 if (clockwise) {
80 tap_code(KC_VOLU);
81 } else {
82 tap_code(KC_VOLD);
83 }
84 }
85}
diff --git a/keyboards/punk75/keymaps/dsanchezseco/readme.md b/keyboards/punk75/keymaps/dsanchezseco/readme.md
new file mode 100644
index 000000000..cb3c40fa0
--- /dev/null
+++ b/keyboards/punk75/keymaps/dsanchezseco/readme.md
@@ -0,0 +1 @@
# dsanchezseco keymap for punk75
diff --git a/keyboards/punk75/punk75.c b/keyboards/punk75/punk75.c
new file mode 100644
index 000000000..045e3c266
--- /dev/null
+++ b/keyboards/punk75/punk75.c
@@ -0,0 +1,32 @@
1/* Copyright 2020 dsanchezseco
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#include "punk75.h"
18
19void matrix_init_kb(void) {
20 // Set our LED pin as output
21 setPinOutput(LED);
22
23 matrix_init_user();
24}
25
26bool led_update_kb(led_t led_state) {
27 bool res = led_update_user(led_state);
28 if(res) {
29 writePin(LED, !led_state.caps_lock);
30 }
31 return res;
32}
diff --git a/keyboards/punk75/punk75.h b/keyboards/punk75/punk75.h
new file mode 100644
index 000000000..6e89e5d2a
--- /dev/null
+++ b/keyboards/punk75/punk75.h
@@ -0,0 +1,43 @@
1/* Copyright 2020 dsanchezseco
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#pragma once
18
19#include "quantum.h"
20
21/* This is a shortcut to help you visually see your layout.
22 *
23 * The first section contains all of the arguments representing the physical
24 * layout of the board and position of the keys.
25 *
26 * The second converts the arguments into a two-dimensional array which
27 * represents the switch matrix.
28 */
29#define LAYOUT_ortho_5x15( \
30 k01, k06, k11, k16, k21, k26, k31, k36, k41, k46, k51, k56, k61, k66, k71, \
31 k02, k07, k12, k17, k22, k27, k32, k37, k42, k47, k52, k57, k62, k67, k72, \
32 k03, k08, k13, k18, k23, k28, k33, k38, k43, k48, k53, k58, k63, k68, k73, \
33 k04, k09, k14, k19, k24, k29, k34, k39, k44, k49, k54, k59, k64, k69, k74, \
34 k05, k10, k15, k20, k25, k30, k35, k40, k45, k50, k55, k60, k65, k70, k75 \
35) { \
36 { k01, k06, k11, k16, k21, k26, k31, k36, k41, k46, k51, k56, k61, k66, k71 }, \
37 { k02, k07, k12, k17, k22, k27, k32, k37, k42, k47, k52, k57, k62, k67, k72 }, \
38 { k03, k08, k13, k18, k23, k28, k33, k38, k43, k48, k53, k58, k63, k68, k73 }, \
39 { k04, k09, k14, k19, k24, k29, k34, k39, k44, k49, k54, k59, k64, k69, k74 }, \
40 { k05, k10, k15, k20, k25, k30, k35, k40, k45, k50, k55, k60, k65, k70, k75 } \
41}
42
43//TODO: other layouts with the 2u keys
diff --git a/keyboards/punk75/readme.md b/keyboards/punk75/readme.md
new file mode 100644
index 000000000..31fe45fb6
--- /dev/null
+++ b/keyboards/punk75/readme.md
@@ -0,0 +1,21 @@
1# punk75
2
3![punk75](https://github.com/dsanchezseco/punk75/raw/master/generated/images/punk75_front.jpg)
4
5[Punk75](https://github.com/dsanchezseco/punk75) is an 75-key ortho keyboard with all its components being hand-solderable (through hole).
6
7More info, BOM list and build guide [here](https://github.com/dsanchezseco/punk75)
8
9* Keyboard Maintainer: [dsanchezseco](https://github.com/dsanchezseco)
10* Hardware Supported: ATmega32A-PU
11* Hardware Availability: None (yet) source it yourself ;)
12
13Make example for this keyboard (after setting up your build environment):
14
15 make punk75:default
16
17Flashing example for this keyboard:
18
19 make punk75:default:flash
20
21See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
diff --git a/keyboards/punk75/rules.mk b/keyboards/punk75/rules.mk
new file mode 100644
index 000000000..b9084ba5e
--- /dev/null
+++ b/keyboards/punk75/rules.mk
@@ -0,0 +1,28 @@
1# MCU name
2MCU = atmega32a
3
4# Processor frequency
5F_CPU = 16000000
6
7# Bootloader selection
8BOOTLOADER = USBasp
9
10# Build Options
11# change yes to no to disable
12#
13BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
14MOUSEKEY_ENABLE = no # Mouse keys
15EXTRAKEY_ENABLE = yes # Audio control and System control
16CONSOLE_ENABLE = no # Console for debug
17COMMAND_ENABLE = no # Commands for debug and configuration
18# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
19SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
20# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
21NKRO_ENABLE = no # USB Nkey Rollover
22BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
23RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
24BLUETOOTH_ENABLE = no # Enable Bluetooth
25AUDIO_ENABLE = no # Audio output
26ENCODER_ENABLE = yes # Enable rotary encoders support
27
28LAYOUTS = ortho_5x15