aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDao Tak Isaac <daotran0940@gmail.com>2021-09-18 13:52:18 +0700
committerGitHub <noreply@github.com>2021-09-17 23:52:18 -0700
commit09b66c06d4fa0f2db1340e9f9b89ab27235bb500 (patch)
tree5f6bdde5a8227411d61898c34bcd800629a056a9
parent228c7b095b0f441652b2719713cb3bf1e5811828 (diff)
downloadqmk_firmware-09b66c06d4fa0f2db1340e9f9b89ab27235bb500.tar.gz
qmk_firmware-09b66c06d4fa0f2db1340e9f9b89ab27235bb500.zip
[Keyboard] Add Dosa40RGB + dtisaac01 (#14476)
-rw-r--r--keyboards/dtisaac/dosa40rgb/config.h73
-rw-r--r--keyboards/dtisaac/dosa40rgb/dosa40rgb.c39
-rw-r--r--keyboards/dtisaac/dosa40rgb/dosa40rgb.h40
-rw-r--r--keyboards/dtisaac/dosa40rgb/info.json53
-rw-r--r--keyboards/dtisaac/dosa40rgb/keymaps/default/keymap.c122
-rw-r--r--keyboards/dtisaac/dosa40rgb/keymaps/default/readme.md1
-rw-r--r--keyboards/dtisaac/dosa40rgb/readme.md25
-rw-r--r--keyboards/dtisaac/dosa40rgb/rules.mk25
-rw-r--r--keyboards/dtisaac/dtisaac01/config.h (renamed from keyboards/handwired/dtisaac01/config.h)0
-rw-r--r--keyboards/dtisaac/dtisaac01/dtisaac01.c (renamed from keyboards/handwired/dtisaac01/dtisaac01.c)0
-rw-r--r--keyboards/dtisaac/dtisaac01/dtisaac01.h (renamed from keyboards/handwired/dtisaac01/dtisaac01.h)0
-rw-r--r--keyboards/dtisaac/dtisaac01/info.json (renamed from keyboards/handwired/dtisaac01/info.json)0
-rw-r--r--keyboards/dtisaac/dtisaac01/keymaps/default/keymap.c (renamed from keyboards/handwired/dtisaac01/keymaps/default/keymap.c)0
-rw-r--r--keyboards/dtisaac/dtisaac01/keymaps/default/readme.md (renamed from keyboards/handwired/dtisaac01/keymaps/default/readme.md)0
-rw-r--r--keyboards/dtisaac/dtisaac01/keymaps/via/keymap.c59
-rw-r--r--keyboards/dtisaac/dtisaac01/keymaps/via/readme.md1
-rw-r--r--keyboards/dtisaac/dtisaac01/keymaps/via/rules.mk1
-rw-r--r--keyboards/dtisaac/dtisaac01/readme.md (renamed from keyboards/handwired/dtisaac01/readme.md)0
-rw-r--r--keyboards/dtisaac/dtisaac01/rules.mk (renamed from keyboards/handwired/dtisaac01/rules.mk)0
19 files changed, 439 insertions, 0 deletions
diff --git a/keyboards/dtisaac/dosa40rgb/config.h b/keyboards/dtisaac/dosa40rgb/config.h
new file mode 100644
index 000000000..52891c4aa
--- /dev/null
+++ b/keyboards/dtisaac/dosa40rgb/config.h
@@ -0,0 +1,73 @@
1/*
2Copyright 2021 DTIsaac
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 0x4454 // DT
24#define PRODUCT_ID 0x4973 // Is
25#define DEVICE_VER 0x0004
26#define MANUFACTURER DTIsaac
27#define PRODUCT >_Dosa40
28
29/* key matrix size */
30#define MATRIX_ROWS 4
31#define MATRIX_COLS 11
32
33/* AdafruitBle Pin */
34#define AdafruitBleResetPin D4
35#define AdafruitBleCSPin B4
36#define AdafruitBleIRQPin E6
37
38/*
39 * Keyboard Matrix Assignments
40 *
41 * Change this to how you wired your keyboard
42 * COLS: AVR pins used for columns, left to right
43 * ROWS: AVR pins used for rows, top to bottom
44 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
45 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
46 *
47 */
48#define MATRIX_ROW_PINS { B7, D7, F1, F0 }
49#define MATRIX_COL_PINS { D1, D6, D3, D2, B6, C6, C7, F7, F6, F5, F4 }
50#define UNUSED_PINS
51
52/* COL2ROW, ROW2COL */
53#define DIODE_DIRECTION COL2ROW
54
55#ifdef RGB_MATRIX_ENABLE
56#define RGB_DI_PIN D0
57#define DRIVER_LED_TOTAL 42
58#define RGB_MATRIX_KEYPRESSES // reacts to keypresses
59#define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
60#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
61#define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
62// #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
63#define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness)
64#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255
65#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_PINWHEEL // Sets the default mode, if none has been set
66#endif
67
68/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
69#define DEBOUNCE 5
70
71/* disable these deprecated features by default */
72#define NO_ACTION_MACRO
73#define NO_ACTION_FUNCTION \ No newline at end of file
diff --git a/keyboards/dtisaac/dosa40rgb/dosa40rgb.c b/keyboards/dtisaac/dosa40rgb/dosa40rgb.c
new file mode 100644
index 000000000..c46bfc291
--- /dev/null
+++ b/keyboards/dtisaac/dosa40rgb/dosa40rgb.c
@@ -0,0 +1,39 @@
1/* Copyright 2021 DTIsaac
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 "dosa40rgb.h"
18
19#ifdef RGB_MATRIX_ENABLE
20led_config_t g_led_config = { {
21 //Key Matrix to LED Index
22 {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10},
23 {22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12 },
24 {23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33},
25 {41, 40, 39, NO_LED, 38, NO_LED, 37, 36, 35, 34, 11}
26}, {
27 //LED Index to Physical Positon
28 { 0, 0}, { 20, 0}, { 40, 0 }, { 61, 0 }, { 81, 0}, { 101, 0}, { 122, 0}, { 142, 0}, { 162, 0}, { 183, 0}, { 203, 0}, { 224, 0},
29 {203, 21}, {183, 21}, {162,21 }, {142, 21}, {122,21}, { 101,21}, { 81 ,21}, { 61 ,21}, { 40 ,21}, { 20 ,21}, { 0 ,21},
30 { 0, 42}, { 20, 42}, { 40,42 }, { 61, 42}, { 81,42}, { 101,42}, { 122,42}, { 142,42}, { 162,42}, { 183,42}, { 203,42},
31 {203, 64}, {183, 64}, {162,64 }, {122, 64}, { 81,64}, { 40, 64}, { 20, 64}, { 0, 64},
32}, {
33 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1,
34 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1,
35 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1,
36 1, 1, 1, 1, 1, 1, 1, 1,
37} };
38
39#endif \ No newline at end of file
diff --git a/keyboards/dtisaac/dosa40rgb/dosa40rgb.h b/keyboards/dtisaac/dosa40rgb/dosa40rgb.h
new file mode 100644
index 000000000..261fb7c46
--- /dev/null
+++ b/keyboards/dtisaac/dosa40rgb/dosa40rgb.h
@@ -0,0 +1,40 @@
1/* Copyright 2021 DTIsaac
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( \
30 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k10, k41, \
31 k11, k12, k13, k14, k15, k16, k17, k18, k19, k20, k21, \
32 k22, k23, k24, k25, k26, k27, k28, k29, k30, k31, k32, \
33 k33, k34, k35, k36, k37, k38, k39, k40 \
34) \
35{ \
36 {k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k10}, \
37 {k11, k12, k13, k14, k15, k16, k17, k18, k19, k20, k21}, \
38 {k22, k23, k24, k25, k26, k27, k28, k29, k30, k31, k32}, \
39 {k33, k34, k35, KC_NO,k36, KC_NO, k37, k38, k39, k40, k41}, \
40} \ No newline at end of file
diff --git a/keyboards/dtisaac/dosa40rgb/info.json b/keyboards/dtisaac/dosa40rgb/info.json
new file mode 100644
index 000000000..2feed40d4
--- /dev/null
+++ b/keyboards/dtisaac/dosa40rgb/info.json
@@ -0,0 +1,53 @@
1{
2 "keyboard_name": ">_Dosa40rgb",
3 "url": "",
4 "maintainer": "DTIsaac",
5 "layouts": {
6 "LAYOUT": {
7 "layout": [
8 {"label":"Esc", "x":0, "y":0},
9 {"label":"Q", "x":1, "y":0},
10 {"label":"W", "x":2, "y":0},
11 {"label":"E", "x":3, "y":0},
12 {"label":"R", "x":4, "y":0},
13 {"label":"T", "x":5, "y":0},
14 {"label":"Y", "x":6, "y":0},
15 {"label":"U", "x":7, "y":0},
16 {"label":"I", "x":8, "y":0},
17 {"label":"O", "x":9, "y":0},
18 {"label":"P", "x":10, "y":0},
19 {"label":"BSPC", "x":11, "y":0},
20 {"label":"Caps Lock", "x":0, "y":1, "w":1.5},
21 {"label":"A", "x":1.5, "y":1},
22 {"label":"S", "x":2.5, "y":1},
23 {"label":"D", "x":3.5, "y":1},
24 {"label":"F", "x":4.5, "y":1},
25 {"label":"G", "x":5.5, "y":1},
26 {"label":"H", "x":6.5, "y":1},
27 {"label":"J", "x":7.5, "y":1},
28 {"label":"K", "x":8.5, "y":1},
29 {"label":"L", "x":9.5, "y":1},
30 {"label":"Enter", "x":10.5, "y":1, "w":1.5},
31 {"label":"Shift", "x":0, "y":2, "w":1.75},
32 {"label":"Z", "x":1.75, "y":2},
33 {"label":"X", "x":2.75, "y":2},
34 {"label":"C", "x":3.75, "y":2},
35 {"label":"V", "x":4.75, "y":2},
36 {"label":"B", "x":5.75, "y":2},
37 {"label":"N", "x":6.75, "y":2},
38 {"label":"M", "x":7.75, "y":2},
39 {"label":",", "x":8.75, "y":2},
40 {"label":".", "x":9.75, "y":2},
41 {"label":"Shift", "x":10.75, "y":2, "w":1.25},
42 {"label":"Ctrl", "x":0, "y":3, "w":1.25},
43 {"label":"Win", "x":1.25, "y":3, "w":1},
44 {"label":"Alt", "x":2.25, "y":3, "w":1.25},
45 {"label":"Space", "x":3.5, "y":3, "w":2.25},
46 {"label":"Space", "x":5.75, "y":3, "w":2.75},
47 {"label":"App", "x":8.5, "y":3, "w":1.25},
48 {"label":"Fn", "x":9.75, "y":3, "w":1},
49 {"label":"Ctrl", "x":10.75, "y":3, "w":1.25}
50 ]
51 }
52 }
53} \ No newline at end of file
diff --git a/keyboards/dtisaac/dosa40rgb/keymaps/default/keymap.c b/keyboards/dtisaac/dosa40rgb/keymaps/default/keymap.c
new file mode 100644
index 000000000..c9bde4bb8
--- /dev/null
+++ b/keyboards/dtisaac/dosa40rgb/keymaps/default/keymap.c
@@ -0,0 +1,122 @@
1/* Copyright 2021 DTIsaac
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#include "spi_master.h"
18#include "wait.h"
19
20// Defines names for use in layer keycodes and the keymap
21enum layer_names {
22 _BASE,
23 _L1,
24 _L2
25};
26
27// Defines the keycodes used by our macros in process_record_user
28enum custom_keycodes {
29 BASE,
30 L1,
31 BLE_DIS, // Disconnect BLE
32 LED_EN, // Toggle LED
33};
34
35#define L1 MO(_L1)
36const uint8_t cm1[] = "AT+GAPSTOPADV";
37const uint8_t cm2[] = "AT+GAPDISCONNECT";
38const uint8_t cm3[] = "ATZ";
39
40const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
41 /* Base */
42 [_BASE] = LAYOUT(
43 KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
44 LT(_L2,KC_CAPS), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT,
45 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_RSFT,
46 KC_LCTL, KC_LGUI, KC_LALT, KC_SPACE, KC_SPACE, KC_RALT, L1, KC_RCTL
47 ),
48 [_L1] = LAYOUT(
49 RESET, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
50 KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_SCLN, KC_QUOT,
51 KC_TRNS, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_TRNS, KC_TRNS, KC_SLSH, KC_TRNS,
52 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
53 ),
54 [_L2] = LAYOUT(
55 LED_EN, RGB_RMOD, KC_UP, RGB_MOD, RGB_HUI, RGB_VAI, RGB_SAI, RGB_SPI, KC_TRNS, OUT_USB, OUT_BT, BLE_DIS,
56 KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, RGB_HUD, RGB_VAD, RGB_SAD, RGB_SPD, KC_TRNS, KC_TRNS, KC_BSLS,
57 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
58 KC_TRNS, KC_TRNS, KC_TRNS, KC_TAB, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
59 ),
60};
61
62void rgb_matrix_indicators_user(void)
63{
64 if (host_keyboard_led_state().caps_lock)
65 {
66 rgb_matrix_set_color(22, 200, 200, 200);
67 }
68 if (IS_LAYER_ON(_L1))
69 {
70 rgb_matrix_set_color(35, 0, 200, 200);
71 }
72 if (IS_LAYER_ON(_L2))
73 {
74 rgb_matrix_set_color(22, 200, 0, 200);
75 }
76}
77
78void sdep_send(const uint8_t *cmd, uint8_t len) {
79
80 spi_start(AdafruitBleCSPin, false, 0, 2);
81 uint8_t cnt = 200;
82 bool ready = false;
83
84 do {
85 ready = spi_write(0x10) != 0xFE;
86 if (ready) {
87 break;
88 }
89 spi_stop();
90 wait_us(25);
91 spi_start(AdafruitBleCSPin, false, 0, 2);
92 } while (cnt--);
93
94 if (ready) {
95 spi_write(0x00);
96 spi_write(0x0A);
97 spi_write(len);
98 spi_transmit(cmd, len);
99 }
100
101 spi_stop();
102}
103
104bool process_record_user(uint16_t keycode, keyrecord_t *record) {
105
106 switch (keycode) {
107 case LED_EN:
108 if (record->event.pressed) {
109 DDRB = DDRB ^ 0x20;
110 PORTB &= ~(1 << 5);
111 }
112 return false;
113 case BLE_DIS:
114 if (record->event.pressed) {
115 sdep_send(cm1,sizeof(cm1));
116 sdep_send(cm2,sizeof(cm2));
117 sdep_send(cm3,sizeof(cm3));
118 }
119 return false;
120 }
121 return true;
122} \ No newline at end of file
diff --git a/keyboards/dtisaac/dosa40rgb/keymaps/default/readme.md b/keyboards/dtisaac/dosa40rgb/keymaps/default/readme.md
new file mode 100644
index 000000000..35494635d
--- /dev/null
+++ b/keyboards/dtisaac/dosa40rgb/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default keymap for dosa40rgb
diff --git a/keyboards/dtisaac/dosa40rgb/readme.md b/keyboards/dtisaac/dosa40rgb/readme.md
new file mode 100644
index 000000000..189dc7b9b
--- /dev/null
+++ b/keyboards/dtisaac/dosa40rgb/readme.md
@@ -0,0 +1,25 @@
1# dosa40rgb
2
3![dosa40rgb](https://i.imgur.com/NfuF82nh.jpg)
4
5A 40 percent keyboard dosa40rgb Bluetooth Low Energy
6
7* Keyboard Maintainer: [DTIsaac](https://github.com/daotakisaac)
8* Hardware Supported: ATmega32U4 + AdafruitBLE SPI
9
10Make example for this keyboard (after setting up your build environment):
11
12 make dtisaac/dosa40rgb:default
13
14Flashing example for this keyboard:
15
16 make dtisaac/dosa40rgb:default:flash
17
18See 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).
19
20## Bootloader
21
22Enter the bootloader in 2 ways:
23
24* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
25* **Keycode in layout**: Press the key mapped to `RESET` if it is available
diff --git a/keyboards/dtisaac/dosa40rgb/rules.mk b/keyboards/dtisaac/dosa40rgb/rules.mk
new file mode 100644
index 000000000..0440ff20b
--- /dev/null
+++ b/keyboards/dtisaac/dosa40rgb/rules.mk
@@ -0,0 +1,25 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = lufa-dfu
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
11MOUSEKEY_ENABLE = no # Mouse keys
12EXTRAKEY_ENABLE = no # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
17# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
18NKRO_ENABLE = no # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
23BLUETOOTH = AdafruitBLE # Enable Bluetooth
24RGB_MATRIX_ENABLE = yes
25RGB_MATRIX_DRIVER = WS2812 \ No newline at end of file
diff --git a/keyboards/handwired/dtisaac01/config.h b/keyboards/dtisaac/dtisaac01/config.h
index f417d6449..f417d6449 100644
--- a/keyboards/handwired/dtisaac01/config.h
+++ b/keyboards/dtisaac/dtisaac01/config.h
diff --git a/keyboards/handwired/dtisaac01/dtisaac01.c b/keyboards/dtisaac/dtisaac01/dtisaac01.c
index b11920280..b11920280 100644
--- a/keyboards/handwired/dtisaac01/dtisaac01.c
+++ b/keyboards/dtisaac/dtisaac01/dtisaac01.c
diff --git a/keyboards/handwired/dtisaac01/dtisaac01.h b/keyboards/dtisaac/dtisaac01/dtisaac01.h
index e017c6570..e017c6570 100644
--- a/keyboards/handwired/dtisaac01/dtisaac01.h
+++ b/keyboards/dtisaac/dtisaac01/dtisaac01.h
diff --git a/keyboards/handwired/dtisaac01/info.json b/keyboards/dtisaac/dtisaac01/info.json
index bf3582d2a..bf3582d2a 100644
--- a/keyboards/handwired/dtisaac01/info.json
+++ b/keyboards/dtisaac/dtisaac01/info.json
diff --git a/keyboards/handwired/dtisaac01/keymaps/default/keymap.c b/keyboards/dtisaac/dtisaac01/keymaps/default/keymap.c
index 15d0f2374..15d0f2374 100644
--- a/keyboards/handwired/dtisaac01/keymaps/default/keymap.c
+++ b/keyboards/dtisaac/dtisaac01/keymaps/default/keymap.c
diff --git a/keyboards/handwired/dtisaac01/keymaps/default/readme.md b/keyboards/dtisaac/dtisaac01/keymaps/default/readme.md
index 0407ae233..0407ae233 100644
--- a/keyboards/handwired/dtisaac01/keymaps/default/readme.md
+++ b/keyboards/dtisaac/dtisaac01/keymaps/default/readme.md
diff --git a/keyboards/dtisaac/dtisaac01/keymaps/via/keymap.c b/keyboards/dtisaac/dtisaac01/keymaps/via/keymap.c
new file mode 100644
index 000000000..2f61c803f
--- /dev/null
+++ b/keyboards/dtisaac/dtisaac01/keymaps/via/keymap.c
@@ -0,0 +1,59 @@
1/* Copyright 2021 DTIsaac
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 layers {
20 _LAYER0,
21 _LAYER1,
22 _LAYER2,
23 _LAYER3,
24};
25
26const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
27 [_LAYER0] = LAYOUT(
28 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,
29 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,
30 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,
31 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,
32 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
33 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, LT(1, KC_NO), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
34 ),
35 [_LAYER1] = LAYOUT(
36 RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_SLEP, KC_WAKE, KC_PWR,
37 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, BL_STEP, BL_ON, BL_INC,
38 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, BL_BRTG, BL_OFF, BL_DEC,
39 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
40 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_VOLU,
41 _______, _______, _______, _______, _______, _______, _______, _______, KC_MPRV, KC_VOLD, KC_MNXT
42 ),
43 [_LAYER2] = LAYOUT(
44 RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
45 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
46 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
47 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
48 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
49 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
50 ),
51 [_LAYER3] = LAYOUT(
52 RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
53 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
54 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
55 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
56 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
57 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
58 ),
59}; \ No newline at end of file
diff --git a/keyboards/dtisaac/dtisaac01/keymaps/via/readme.md b/keyboards/dtisaac/dtisaac01/keymaps/via/readme.md
new file mode 100644
index 000000000..0407ae233
--- /dev/null
+++ b/keyboards/dtisaac/dtisaac01/keymaps/via/readme.md
@@ -0,0 +1 @@
# The default keymap for dtisaac01
diff --git a/keyboards/dtisaac/dtisaac01/keymaps/via/rules.mk b/keyboards/dtisaac/dtisaac01/keymaps/via/rules.mk
new file mode 100644
index 000000000..036bd6d1c
--- /dev/null
+++ b/keyboards/dtisaac/dtisaac01/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes \ No newline at end of file
diff --git a/keyboards/handwired/dtisaac01/readme.md b/keyboards/dtisaac/dtisaac01/readme.md
index bf37c4dd2..bf37c4dd2 100644
--- a/keyboards/handwired/dtisaac01/readme.md
+++ b/keyboards/dtisaac/dtisaac01/readme.md
diff --git a/keyboards/handwired/dtisaac01/rules.mk b/keyboards/dtisaac/dtisaac01/rules.mk
index dc64cef32..dc64cef32 100644
--- a/keyboards/handwired/dtisaac01/rules.mk
+++ b/keyboards/dtisaac/dtisaac01/rules.mk