aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEithan Shavit <eithanshavit@users.noreply.github.com>2021-01-29 19:38:40 -0800
committerGitHub <noreply@github.com>2021-01-29 19:38:40 -0800
commit42045f5b173fc50c61b8d033dae58848eeeed869 (patch)
treef2d8f46c0229fd1fe46bd25cf8156b2ba6db2f5d
parent64da7413a0c2b3ea555288f5d296e3a98a0da6b4 (diff)
downloadqmk_firmware-42045f5b173fc50c61b8d033dae58848eeeed869.tar.gz
qmk_firmware-42045f5b173fc50c61b8d033dae58848eeeed869.zip
[Keyboard] Adding Gust Macro Board (#11610)
* Adding Gust Macro Board * Removing some rules * Changing some rules Co-authored-by: Eithan Shavit <eithan@fb.com>
-rw-r--r--keyboards/afternoonlabs/gust/config.h22
-rw-r--r--keyboards/afternoonlabs/gust/gust.c17
-rw-r--r--keyboards/afternoonlabs/gust/gust.h21
-rw-r--r--keyboards/afternoonlabs/gust/keymaps/default/keymap.c34
-rw-r--r--keyboards/afternoonlabs/gust/keymaps/default/readme.md5
-rw-r--r--keyboards/afternoonlabs/gust/rev1/config.h41
-rw-r--r--keyboards/afternoonlabs/gust/rev1/info.json38
-rw-r--r--keyboards/afternoonlabs/gust/rev1/readme.md15
-rw-r--r--keyboards/afternoonlabs/gust/rev1/rev1.c17
-rw-r--r--keyboards/afternoonlabs/gust/rev1/rev1.h30
-rw-r--r--keyboards/afternoonlabs/gust/rev1/rules.mk22
11 files changed, 262 insertions, 0 deletions
diff --git a/keyboards/afternoonlabs/gust/config.h b/keyboards/afternoonlabs/gust/config.h
new file mode 100644
index 000000000..48331fa07
--- /dev/null
+++ b/keyboards/afternoonlabs/gust/config.h
@@ -0,0 +1,22 @@
1/* Copyright 2021 eithanshavit
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 "config_common.h"
20
21#define NO_ACTION_MACRO
22#define NO_ACTION_FUNCTION
diff --git a/keyboards/afternoonlabs/gust/gust.c b/keyboards/afternoonlabs/gust/gust.c
new file mode 100644
index 000000000..ee2a9fa5c
--- /dev/null
+++ b/keyboards/afternoonlabs/gust/gust.c
@@ -0,0 +1,17 @@
1/* Copyright 2021 eithanshavit
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 "gust.h"
diff --git a/keyboards/afternoonlabs/gust/gust.h b/keyboards/afternoonlabs/gust/gust.h
new file mode 100644
index 000000000..886dc3786
--- /dev/null
+++ b/keyboards/afternoonlabs/gust/gust.h
@@ -0,0 +1,21 @@
1/* Copyright 2021 eithanshavit
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#ifdef KEYBOARD_afternoonlabs_gust_rev1
20# include "rev1.h"
21#endif
diff --git a/keyboards/afternoonlabs/gust/keymaps/default/keymap.c b/keyboards/afternoonlabs/gust/keymaps/default/keymap.c
new file mode 100644
index 000000000..33bd13f86
--- /dev/null
+++ b/keyboards/afternoonlabs/gust/keymaps/default/keymap.c
@@ -0,0 +1,34 @@
1/* Copyright 2021 eithanshavit
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 QMK_KEYBOARD_H
18
19enum layer_names {
20 _MAIN,
21};
22
23
24const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
25
26 [_MAIN] = LAYOUT(
27 //┌─────────┬─────────┬─────────┐
28 KC_1, KC_2, KC_3,
29 //├─────────┼─────────┼─────────┤
30 KC_4, KC_5, KC_6
31 //└─────────┴─────────┴─────────┘
32 )
33
34};
diff --git a/keyboards/afternoonlabs/gust/keymaps/default/readme.md b/keyboards/afternoonlabs/gust/keymaps/default/readme.md
new file mode 100644
index 000000000..290eae23e
--- /dev/null
+++ b/keyboards/afternoonlabs/gust/keymaps/default/readme.md
@@ -0,0 +1,5 @@
1# Default Gust Layout
2
3![Gust Layout Image](https://i.imgur.com/S94jViT.jpeg)
4
5This is the default layout for Gust Macro Board.
diff --git a/keyboards/afternoonlabs/gust/rev1/config.h b/keyboards/afternoonlabs/gust/rev1/config.h
new file mode 100644
index 000000000..646f21dcc
--- /dev/null
+++ b/keyboards/afternoonlabs/gust/rev1/config.h
@@ -0,0 +1,41 @@
1/* Copyright 2021 eithanshavit
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/* USB Device descriptor parameter */
20#define VENDOR_ID 0x616C
21#define PRODUCT_ID 0x0002
22#define DEVICE_VER 0x0001
23#define MANUFACTURER AfternoonLabs
24#define PRODUCT Gust
25
26/* key matrix size */
27// Rows are doubled-up
28#define MATRIX_ROWS 2
29#define MATRIX_COLS 3
30
31// wiring of each half
32#define MATRIX_ROW_PINS { F5, F4 }
33#define MATRIX_COL_PINS { D1, D2, D3 }
34
35/* Set 0 if debouncing isn't needed */
36#define DEBOUNCE 5
37
38#define DIODE_DIRECTION COL2ROW
39
40#define BOOTMAGIC_LITE_ROW 0
41#define BOOTMAGIC_LITE_COL 0
diff --git a/keyboards/afternoonlabs/gust/rev1/info.json b/keyboards/afternoonlabs/gust/rev1/info.json
new file mode 100644
index 000000000..376cb265b
--- /dev/null
+++ b/keyboards/afternoonlabs/gust/rev1/info.json
@@ -0,0 +1,38 @@
1{
2 "keyboard_name": "Gust",
3 "url": "afternoonlabs.com/breeze",
4 "productId": "0x0002",
5 "maintainer": "eithanshavit",
6 "width": 3,
7 "height": 2,
8 "layouts": {
9 "LAYOUT": {
10 "layout": [
11 {
12 "x": 0,
13 "y": 0
14 },
15 {
16 "x": 1,
17 "y": 0
18 },
19 {
20 "x": 2,
21 "y": 0
22 },
23 {
24 "x": 0,
25 "y": 1
26 },
27 {
28 "x": 1,
29 "y": 1
30 },
31 {
32 "x": 2,
33 "y": 1
34 }
35 ]
36 }
37 }
38}
diff --git a/keyboards/afternoonlabs/gust/rev1/readme.md b/keyboards/afternoonlabs/gust/rev1/readme.md
new file mode 100644
index 000000000..f72e5cc6b
--- /dev/null
+++ b/keyboards/afternoonlabs/gust/rev1/readme.md
@@ -0,0 +1,15 @@
1# Gust
2
3![Gust](https://i.imgur.com/S94jViT.jpeg)
4
5Gust Macro Board is a simple 6 key cluster that comes as a free bonus with the [Breeze Split Keyboard](https://afternoonlabs.com/breeze).
6
7* Keyboard Maintainer: [Eithan Shavit](https://github.com/eithanshavit)
8* Hardware Supported: Gust Rev1 PCB
9* Hardware Availability: Coming soon
10
11Make example for this keyboard (after setting up your build environment):
12
13 make afternoonlabs/gust/rev1:default
14
15See 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/afternoonlabs/gust/rev1/rev1.c b/keyboards/afternoonlabs/gust/rev1/rev1.c
new file mode 100644
index 000000000..ee2a9fa5c
--- /dev/null
+++ b/keyboards/afternoonlabs/gust/rev1/rev1.c
@@ -0,0 +1,17 @@
1/* Copyright 2021 eithanshavit
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 "gust.h"
diff --git a/keyboards/afternoonlabs/gust/rev1/rev1.h b/keyboards/afternoonlabs/gust/rev1/rev1.h
new file mode 100644
index 000000000..97f75cef8
--- /dev/null
+++ b/keyboards/afternoonlabs/gust/rev1/rev1.h
@@ -0,0 +1,30 @@
1/* Copyright 2021 eithanshavit
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 "gust.h"
20
21#include "quantum.h"
22
23#define LAYOUT( \
24 M00, M01, M02, \
25 M10, M11, M12 \
26) \
27{ \
28 { M00, M01, M02 }, \
29 { M10, M11, M12 } \
30}
diff --git a/keyboards/afternoonlabs/gust/rev1/rules.mk b/keyboards/afternoonlabs/gust/rev1/rules.mk
new file mode 100644
index 000000000..eb0a77dce
--- /dev/null
+++ b/keyboards/afternoonlabs/gust/rev1/rules.mk
@@ -0,0 +1,22 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = caterina
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
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