Skip to content

Commit 8de9200

Browse files
anubhavd7zvecrfauxpark
authored andcommitted
[Keyboard] add at6 keyboard (qmk#17346)
Co-authored-by: zvecr <[email protected]> Co-authored-by: Ryan <[email protected]>
1 parent cbc8e96 commit 8de9200

File tree

8 files changed

+245
-0
lines changed

8 files changed

+245
-0
lines changed

keyboards/atset/at6/at6.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* This program is free software: you can redistribute it and/or modify
3+
* it under the terms of the GNU General Public License as published by
4+
* the Free Software Foundation, either version 2 of the License, or
5+
* (at your option) any later version.
6+
*
7+
* This program is distributed in the hope that it will be useful,
8+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10+
* GNU General Public License for more details.
11+
*
12+
* You should have received a copy of the GNU General Public License
13+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
14+
*/
15+
#include "at6.h"

keyboards/atset/at6/at6.h

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* This program is free software: you can redistribute it and/or modify
3+
* it under the terms of the GNU General Public License as published by
4+
* the Free Software Foundation, either version 2 of the License, or
5+
* (at your option) any later version.
6+
* This program is distributed in the hope that it will be useful,
7+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
8+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9+
* GNU General Public License for more details.
10+
*
11+
* You should have received a copy of the GNU General Public License
12+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
13+
*/
14+
#include "quantum.h"
15+
16+
#define LAYOUT( \
17+
k00, k01, k02, \
18+
k10, k11, k12 \
19+
) \
20+
{ \
21+
{ k00, k01, k02 }, \
22+
{ k10, k11, k12 } \
23+
}
24+

keyboards/atset/at6/config.h

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
/*
2+
* This program is free software: you can redistribute it and/or modify
3+
* it under the terms of the GNU General Public License as published by
4+
* the Free Software Foundation, either version 2 of the License, or
5+
* (at your option) any later version.
6+
*
7+
* This program is distributed in the hope that it will be useful,
8+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10+
* GNU General Public License for more details.
11+
*
12+
* You should have received a copy of the GNU General Public License
13+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
14+
*/
15+
16+
#pragma once
17+
18+
#include "config_common.h"
19+
20+
/* USB Device descriptor parameter */
21+
#define VENDOR_ID 0xFEED // Atset
22+
#define PRODUCT_ID 0x6060
23+
#define DEVICE_VER 0x0001
24+
#define MANUFACTURER Atset
25+
#define PRODUCT AT6
26+
27+
/* Key matrix size */
28+
#define MATRIX_ROWS 2
29+
#define MATRIX_COLS 3
30+
31+
#define MATRIX_ROW_PINS { D2, D1 }
32+
#define MATRIX_COL_PINS { B6, B5, B4 }
33+
#define UNUSED_PINS
34+
35+
/* COL2ROW, ROW2COL*/
36+
#define DIODE_DIRECTION COL2ROW
37+
38+
39+
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
40+
#define DEBOUNCE 5
41+
42+
/* define if matrix has ghost (lacks anti-ghosting diodes) */
43+
//#define MATRIX_HAS_GHOST
44+
45+
46+
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
47+
#define LOCKING_SUPPORT_ENABLE
48+
/* Locking resynchronize hack */
49+
#define LOCKING_RESYNC_ENABLE
50+
51+
/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
52+
* This is userful for the Windows task manager shortcut (ctrl+shift+esc).
53+
*/
54+
// #define GRAVE_ESC_CTRL_OVERRIDE
55+
56+
/*
57+
* Force NKRO
58+
*
59+
* Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
60+
* state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
61+
* makefile for this to work.)
62+
*
63+
* If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
64+
* until the next keyboard reset.
65+
*
66+
* NKRO may prevent your keystrokes from being detected in the BIOS, but it is
67+
* fully operational during normal computer usage.
68+
*
69+
* For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
70+
* or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
71+
* bootmagic, NKRO mode will always be enabled until it is toggled again during a
72+
* power-up.
73+
74+
*/
75+
//#define FORCE_NKRO
76+

keyboards/atset/at6/info.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"keyboard_name": "AT6",
3+
"maintainer": "atset",
4+
"layouts": {
5+
"LAYOUT": {
6+
"layout": [{"label":"k00", "x":0, "y":0}, {"label":"k01", "x":1, "y":0}, {"label":"k02", "x":2, "y":0}, {"label":"k10", "x":0, "y":1}, {"label":"k11", "x":1, "y":1}, {"label":"k12", "x":2, "y":1}]
7+
}
8+
}
9+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
* This program is free software: you can redistribute it and/or modify
3+
* it under the terms of the GNU General Public License as published by
4+
* the Free Software Foundation, either version 2 of the License, or
5+
* (at your option) any later version.
6+
*
7+
* This program is distributed in the hope that it will be useful,
8+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10+
* GNU General Public License for more details.
11+
*
12+
* You should have received a copy of the GNU General Public License
13+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
14+
*/
15+
16+
#include QMK_KEYBOARD_H
17+
18+
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
19+
20+
21+
[0] = LAYOUT(
22+
KC_7, KC_8, KC_9,
23+
KC_4, KC_5, KC_6
24+
),
25+
26+
27+
[1] = LAYOUT(
28+
KC_NO, KC_NO, KC_NO,
29+
KC_NO, KC_NO, KC_NO
30+
),
31+
32+
33+
[2] = LAYOUT(
34+
KC_NO, KC_NO, KC_NO,
35+
KC_NO, KC_NO, KC_NO
36+
)
37+
38+
39+
};
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
* This program is free software: you can redistribute it and/or modify
3+
* it under the terms of the GNU General Public License as published by
4+
* the Free Software Foundation, either version 2 of the License, or
5+
* (at your option) any later version.
6+
*
7+
* This program is distributed in the hope that it will be useful,
8+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10+
* GNU General Public License for more details.
11+
*
12+
* You should have received a copy of the GNU General Public License
13+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
14+
*/
15+
16+
#include QMK_KEYBOARD_H
17+
18+
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
19+
[0] =
20+
LAYOUT(
21+
KC_4 , KC_5 , KC_6,
22+
KC_1 , KC_2 , KC_3
23+
),
24+
[1] =
25+
LAYOUT(
26+
KC_NO , KC_NO, KC_NO,
27+
KC_NO , KC_NO, KC_NO
28+
),
29+
[2] =
30+
LAYOUT(
31+
KC_NO , KC_NO, KC_NO,
32+
KC_NO , KC_NO, KC_NO
33+
),
34+
[3] =
35+
LAYOUT(
36+
KC_NO , KC_NO, KC_NO,
37+
KC_NO , KC_NO, KC_NO
38+
)
39+
};

keyboards/atset/at6/readme.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# ATSET AT6
2+
3+
A special 6 key keyboard powered by QMK.
4+
5+
* Keyboard Maintainer: [ATSET](https://github.com/anubhavd7)
6+
* Hardware Supported: ATmega32U4
7+
* Hardware Availability: Interest Check
8+
9+
Make example for this keyboard (after setting up your build environment):
10+
11+
make atset/at6:default
12+
13+
Flashing example for this keyboard:
14+
15+
make atset/at6:default:flash
16+
17+
See 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).
18+
19+
## Bootloader
20+
21+
Enter the bootloader in 3 ways:
22+
23+
* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
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

keyboards/atset/at6/rules.mk

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# MCU name
2+
MCU = atmega32u4
3+
4+
# Bootloader selection
5+
BOOTLOADER = atmel-dfu
6+
7+
# Build Options
8+
# change yes to no to disable
9+
#
10+
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
11+
MOUSEKEY_ENABLE = yes # Mouse keys
12+
EXTRAKEY_ENABLE = yes # Audio control and System control
13+
CONSOLE_ENABLE = yes # Console for debug
14+
COMMAND_ENABLE = yes # Commands for debug and configuration
15+
NKRO_ENABLE = yes # Enable N-Key Rollover
16+
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
17+
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
18+
AUDIO_ENABLE = no # Audio output

0 commit comments

Comments
 (0)