aboutsummaryrefslogtreecommitdiff
path: root/keyboards/aleth42/rev0
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/aleth42/rev0')
-rw-r--r--keyboards/aleth42/rev0/config.h82
-rw-r--r--keyboards/aleth42/rev0/readme.md15
-rw-r--r--keyboards/aleth42/rev0/rev0.c17
-rw-r--r--keyboards/aleth42/rev0/rev0.h54
-rw-r--r--keyboards/aleth42/rev0/rules.mk18
5 files changed, 186 insertions, 0 deletions
diff --git a/keyboards/aleth42/rev0/config.h b/keyboards/aleth42/rev0/config.h
new file mode 100644
index 000000000..da10e30a4
--- /dev/null
+++ b/keyboards/aleth42/rev0/config.h
@@ -0,0 +1,82 @@
1/*
2Copyright 2020 monksoffunk
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 0x04D8
24#define PRODUCT_ID 0xEAC8
25#define DEVICE_VER 0x0000
26#define MANUFACTURER 25KEYS
27#define PRODUCT ALETH42
28
29/* key matrix size */
30#define MATRIX_ROWS 4
31#define MATRIX_COLS 11
32
33/* key matrix pins */
34#define MATRIX_ROW_PINS { B0, B1, B2, B3 }
35#define MATRIX_COL_PINS { D0, D1, D2, D3, D4, D5, D6, C2, C4, C5, C6 }
36#define UNUSED_PINS
37
38/* COL2ROW, ROW2COL*/
39#define DIODE_DIRECTION COL2ROW
40
41#define ENCODERS_PAD_A { B6, B5 } // located @ upper left
42#define ENCODERS_PAD_B { B7, B4 } // located @ bottom left
43
44#define RGB_DI_PIN C7
45#ifdef RGB_DI_PIN
46 #define RGBLED_NUM 6
47 #define RGBLIGHT_HUE_STEP 8
48 #define RGBLIGHT_SAT_STEP 8
49 #define RGBLIGHT_VAL_STEP 8
50 #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
51 #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
52 /*== all animations enable ==*/
53 #define RGBLIGHT_ANIMATIONS
54// /*== or choose animations ==*/
55// #define RGBLIGHT_EFFECT_BREATHING
56// #define RGBLIGHT_EFFECT_RAINBOW_MOOD
57// #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
58// #define RGBLIGHT_EFFECT_SNAKE
59// #define RGBLIGHT_EFFECT_KNIGHT
60// #define RGBLIGHT_EFFECT_CHRISTMAS
61// #define RGBLIGHT_EFFECT_STATIC_GRADIENT
62// #define RGBLIGHT_EFFECT_RGB_TEST
63// #define RGBLIGHT_EFFECT_ALTERNATING
64// /*== customize breathing effect ==*/
65// /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
66// #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
67// /*==== use exp() and sin() ====*/
68// #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
69// #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
70#endif
71
72/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
73#define DEBOUNCE 5
74
75/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
76#define LOCKING_SUPPORT_ENABLE
77/* Locking resynchronize hack */
78#define LOCKING_RESYNC_ENABLE
79
80/* disable these deprecated features by default */
81#define NO_ACTION_MACRO
82#define NO_ACTION_FUNCTION \ No newline at end of file
diff --git a/keyboards/aleth42/rev0/readme.md b/keyboards/aleth42/rev0/readme.md
new file mode 100644
index 000000000..2457a7a10
--- /dev/null
+++ b/keyboards/aleth42/rev0/readme.md
@@ -0,0 +1,15 @@
1# ALETH42
2
3![ALETH42](https://i.imgur.com/6hJVBQl.png)
4
540% keyboard with rotary encoder (optional)
6
7* Keyboard Maintainer: [monksoffunk](https://github.com/monksoffunk/) [@monksoffunkJP](https://twitter.com/monksoffunkJP)
8* Hardware Supported: ALETH42 PCB
9* Hardware Availability: [twitter](https://twitter.com/monksoffunkJP)
10
11Make example for this keyboard (after setting up your build environment):
12
13 make aleth42: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/aleth42/rev0/rev0.c b/keyboards/aleth42/rev0/rev0.c
new file mode 100644
index 000000000..ce91e8380
--- /dev/null
+++ b/keyboards/aleth42/rev0/rev0.c
@@ -0,0 +1,17 @@
1/* Copyright 2020 monksoffunk
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 "rev0.h" \ No newline at end of file
diff --git a/keyboards/aleth42/rev0/rev0.h b/keyboards/aleth42/rev0/rev0.h
new file mode 100644
index 000000000..a5dd74037
--- /dev/null
+++ b/keyboards/aleth42/rev0/rev0.h
@@ -0,0 +1,54 @@
1/* Copyright 2020 monksoffunk
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// for readability
22#define XXX KC_NO
23
24/* This is a shortcut to help you visually see your layout.
25 *
26 * The first section contains all of the arguments representing the physical
27 * layout of the board and position of the keys.
28 *
29 * The second converts the arguments into a two-dimensional array which
30 * represents the switch matrix.
31 */
32/* ALETH42 layout
33 * ,-----------------------------------------------------------.
34 * | 00 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 0A | 38 |
35 * |-----------------------------------------------------------|
36 * | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 1A |
37 * |-----------------------------------------------------------|
38 * | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 2A |
39 * |-----------------------------------------------------------|
40 * | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 |
41 * `-----------------------------------------------------------'
42 */
43#define LAYOUT( \
44 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A, k38,\
45 k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A,\
46 k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A,\
47 k30, k31, k32, k33, k34, k35, k36, k37\
48) \
49{ \
50 { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A },\
51 { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A },\
52 { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A },\
53 { k30, k31, k32, k33, k34, k35, k36, k37, XXX, XXX, k38 }\
54}
diff --git a/keyboards/aleth42/rev0/rules.mk b/keyboards/aleth42/rev0/rules.mk
new file mode 100644
index 000000000..fd5789116
--- /dev/null
+++ b/keyboards/aleth42/rev0/rules.mk
@@ -0,0 +1,18 @@
1# MCU name
2MCU = atmega32u2
3
4# Bootloader selection
5BOOTLOADER = atmel-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 = yes # Audio control and System control
13CONSOLE_ENABLE = yes # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15NKRO_ENABLE = no # Enable N-Key Rollover
16BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
17RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
18ENCODER_ENABLE = yes